DEV Community

Discussion on: after build succeeded, I tried to run it locally but got this error :

Collapse
maciejtrzcinski profile image
Maciej Trzciński 🌱🇵🇱 • Edited on

Hi,

Add

"type": "module"
Enter fullscreen mode Exit fullscreen mode


in your package.json

Collapse
alb_isma profile image
ismailalabou Author

it's there ...

Collapse
alb_isma profile image
ismailalabou Author

it's already there it says: Module 'type is extraneous npm [10, 3]'

Collapse
janpauldahlke profile image
jan paul

here are the related docs:
developer.mozilla.org/en-US/docs/W...

Collapse
alb_isma profile image
ismailalabou Author

it's already there it says: Module 'type is extraneous npm [10, 3]'

Collapse
alb_isma profile image
ismailalabou Author

it's there ...

Thread Thread
alb_isma profile image
ismailalabou Author

"version": "0.1.0",
"private": true,
"type": "module",
"engines": {
"node": "14.15.0",
"npm": "6.14.8"
},