Skip to content
This repository has been archived by the owner on Oct 6, 2023. It is now read-only.

Cannot find module '(...)/node_modules/@peeky/cli/dist/commands/server' #55

Closed
laruiss opened this issue Dec 17, 2021 · 0 comments
Closed
Labels
bug Something isn't working

Comments

@laruiss
Copy link

laruiss commented Dec 17, 2021

When I run peeky open, I get this error:

> peeky open

node:internal/errors:464
    ErrorCaptureStackTrace(err);
    ^

Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/Users/stan/projects/formations/exo-movies/node_modules/@peeky/cli/dist/commands/server' imported from /Users/stan/projects/formations/exo-movies/node_modules/@peeky/cli/dist/commands/open.js
    at new NodeError (node:internal/errors:371:5)
    at finalizeResolution (node:internal/modules/esm/resolve:416:11)
    at moduleResolve (node:internal/modules/esm/resolve:932:10)
    at defaultResolve (node:internal/modules/esm/resolve:1044:11)
    at ESMLoader.resolve (node:internal/modules/esm/loader:422:30)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:222:40)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:76:40)
    at link (node:internal/modules/esm/module_job:75:36) {
  code: 'ERR_MODULE_NOT_FOUND'
}

If I change the first line of node_modules/@peeky/cli/dist/commands/open.js this way, peeky launches OK in the browser:

-import { server } from './server';
+import { server } from './server.js';
@Akryum Akryum added the bug Something isn't working label Dec 18, 2021
@Akryum Akryum closed this as completed in bcee3a0 Dec 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants