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

Must use import to load ES Module #150

Closed
Paulsonbigi opened this issue Aug 22, 2021 · 1 comment
Closed

Must use import to load ES Module #150

Paulsonbigi opened this issue Aug 22, 2021 · 1 comment

Comments

@Paulsonbigi
Copy link

{"message":"UNCAUGHTEXCEPTION: Error: Cannot find module 'normalize-url'\nRequire stack:\n- C:\Users\Paul\Documents\React-Projects\MERN Ecommerce\controllers\auth.controllers.js\n- C:\Users\Paul\Documents\React-Projects\MERN Ecommerce\routes\auth.routes.js\n- C:\Users\Paul\Documents\React-Projects\MERN Ecommerce\app.js\n- C:\Users\Paul\Documents\React-Projects\MERN Ecommerce\server.js\n at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)\n at Function.Module._load (internal/modules/cjs/loader.js:746:27)\n at Module.require (internal/modules/cjs/loader.js:974:19)\n at require (internal/modules/cjs/helpers.js:92:18)\n at Object. (C:\Users\Paul\Documents\React-Projects\MERN Ecommerce\controllers\auth.controllers.js:4:22)\n
at Module._compile (internal/modules/cjs/loader.js:1085:14)\n at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)\n at Module.load (internal/modules/cjs/loader.js:950:32)\n
at Function.Module._load (internal/modules/cjs/loader.js:790:14)\n at Module.require (internal/modules/cjs/loader.js:974:19)\n at require (internal/modules/cjs/helpers.js:92:18)\n at Object. (C:\Users\Paul\Documents\React-Projects\MERN Ecommerce\routes\auth.routes.js:4:26)\n
at Module._compile (internal/modules/cjs/loader.js:1085:14)\n at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)\n at Module.load (internal/modules/cjs/loader.js:950:32)\n
at Function.Module._load (internal/modules/cjs/loader.js:790:14)","level":"info"}
[nodemon] app crashed - waiting for file changes before starting...

@sindresorhus
Copy link
Owner

https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants