I run npm run setup successfully but can not run npm run start. I got these errors. Please help!
git version 2.42.0
Node: v18.17.1
npm: 9.6.7
OS: Mac
Encountered error importing the server, exiting...
Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/Users/nguytb15/data-modeling/node_modules/@mux/playback-core/dist/index.mjs' imported from /Users/nguytb15/data-modeling/node_modules/@mux/mux-player-react/dist/index.mjs
Did you mean to import @mux/playback-core/dist/index.cjs.js?
at new NodeError (node:internal/errors:405:5)
at finalizeResolution (node:internal/modules/esm/resolve:324:11)
at moduleResolve (node:internal/modules/esm/resolve:943:10)
at defaultResolve (node:internal/modules/esm/resolve:1129:11)
at nextResolve (node:internal/modules/esm/loader:163:28)
at ESMLoader.resolve (node:internal/modules/esm/loader:835:30)
at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18)
at ModuleWrap. (node:internal/modules/esm/module_job:77:40)
at link (node:internal/modules/esm/module_job:76:36) {
code: 'ERR_MODULE_NOT_FOUND'
}
Encountered error running the server, exiting...
I run
npm run setup
successfully but can not runnpm run start
. I got these errors. Please help!git version 2.42.0 Node: v18.17.1 npm: 9.6.7 OS: Mac
Encountered error importing the server, exiting... Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/Users/nguytb15/data-modeling/node_modules/@mux/playback-core/dist/index.mjs' imported from /Users/nguytb15/data-modeling/node_modules/@mux/mux-player-react/dist/index.mjs Did you mean to import @mux/playback-core/dist/index.cjs.js? at new NodeError (node:internal/errors:405:5) at finalizeResolution (node:internal/modules/esm/resolve:324:11) at moduleResolve (node:internal/modules/esm/resolve:943:10) at defaultResolve (node:internal/modules/esm/resolve:1129:11) at nextResolve (node:internal/modules/esm/loader:163:28) at ESMLoader.resolve (node:internal/modules/esm/loader:835:30) at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18) at ModuleWrap. (node:internal/modules/esm/module_job:77:40)
at link (node:internal/modules/esm/module_job:76:36) {
code: 'ERR_MODULE_NOT_FOUND'
}
Encountered error running the server, exiting...