epicweb-dev / data-modeling

Model and query your data with confidence
https://www.epicweb.dev
Other
151 stars 61 forks source link

npm start error #52

Closed knupel closed 4 months ago

knupel commented 5 months ago

Hello,

When I try to use npm start

the console return the error

> start
> kcdshop start

Encountered error importing the server, exiting...
Error: Cannot find module '/Users/stan/EN_COURS/CODE/PRO/EPIC_TUTO/data-modeling/node_modules/@mux/mux-video/dist/index.mjs' imported from /Users/stan/EN_COURS/CODE/PRO/EPIC_TUTO/data-modeling/node_modules/@mux/mux-player/dist/index.mjs
Did you mean to import @mux/mux-video/dist/index.cjs.js?
    at new NodeError (node:internal/errors:399:5)
    at finalizeResolution (node:internal/modules/esm/resolve:326:11)
    at moduleResolve (node:internal/modules/esm/resolve:945:10)
    at defaultResolve (node:internal/modules/esm/resolve:1153:11)
    at nextResolve (node:internal/modules/esm/loader:163:28)
    at ESMLoader.resolve (node:internal/modules/esm/loader:838:30)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18)
    at ModuleWrap.<anonymous> (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 don't know the modul : @mux...

May be it's link with https://github.com/epicweb-dev/data-modeling#launching-your-editor

but my problem I'm on Mac os and the solution you propose is for window, I don't know hos pass the path for mac OSX

kentcdodds commented 5 months ago

Hi @knupel!

Sorry it's taken me so long to get back to you. My guess is there was something weird that happened with the way your npm modules were installed. Could you try running the setup again from scratch?

git clone --depth 1 https://github.com/epicweb-dev/data-modeling.git
cd data-modeling
npm run setup

Let me know if that fixes this for you.

knupel commented 4 months ago

Perfect, you're a magician. I thought to make npm run setupfew times but not reinstall from scratch. That's work like a charm now. Thks a lot.