[Bug]: importing adminjs in project and error ExperimentalWarning
Contact Details
No response
What happened?
adding admin js in project ,import AdminJS from "adminjs"; and in my terminal error or warning
[nodemon] starting node server.js
(node:10384) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
(Use node --trace-warnings ... to show where the warning was created)
Bug prevalence
admin.com
AdminJS dependencies version
{ "name": "umeshvegetableshop", "version": "1.0.0", "main": "server.js", "type": "module", "scripts": { "start": "nodemon server.js" }, "author": "Prince Dev", "license": "ISC", "description": "", "dependencies": { "@adminjs/express": "^6.1.0", "@adminjs/mongoose": "^4.1.0", "@adminjs/themes": "^1.0.1", "adminjs": "^7.8.13", "body-parser": "^1.20.3", "connect-mongodb-session": "^5.0.0", "cookie-parser": "^1.4.7", "dotenv": "^16.4.7", "express": "^4.21.2", "express-formidable": "^1.2.0", "express-session": "^1.18.1", "jsonwebtoken": "^9.0.2", "mongoose": "^8.8.4", "socket.io": "^4.8.1", "tslib": "^2.8.1" }, "devDependencies": { "nodemon": "^3.1.7" } }
What browsers do you see the problem on?
No response
Relevant log output
(node:10384) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
Relevant code that's giving you issues
(node:10384) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)