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

Cannot find module web-dev-server.config.mjs #2689

Open
grvpanchal opened this issue Mar 30, 2024 · 0 comments
Open

Cannot find module web-dev-server.config.mjs #2689

grvpanchal opened this issue Mar 30, 2024 · 0 comments

Comments

@grvpanchal
Copy link

Hello I am getting the following error after a fresh install

npm run storybook

> app-shell@0.0.0 storybook
> npm run analyze -- --exclude dist && web-dev-server -c .storybook/server.mjs


> app-shell@0.0.0 analyze
> cem analyze --litelement --exclude dist

[6:56:34 PM] @custom-elements-manifest/analyzer: Created new manifest.
Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'D:\Documents\Projects\elegant\templates\chota-wc-saga\web-dev-server.config.mjs' imported from D:\Documents\Projects\elegant\templates\chota-wc-saga\.storybook\server.mjs
    at new NodeError (node:internal/errors:405:5)
    at finalizeResolution (node:internal/modules/esm/resolve:327:11)
    at moduleResolve (node:internal/modules/esm/resolve:946:10)
    at defaultResolve (node:internal/modules/esm/resolve:1132: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.<anonymous> (node:internal/modules/esm/module_job:77:40)
    at link (node:internal/modules/esm/module_job:76:36) {
  code: 'ERR_MODULE_NOT_FOUND'
}

I have added my package.json and my node version is v18.18.2
package.json

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

1 participant