Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: importing adminjs in project and error ExperimentalWarning #1727

Open
gmprince420 opened this issue Dec 24, 2024 · 0 comments
Open

[Bug]: importing adminjs in project and error ExperimentalWarning #1727

gmprince420 opened this issue Dec 24, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@gmprince420
Copy link

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)
@gmprince420 gmprince420 added the bug Something isn't working label Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant