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

Import error: Cannot find module 'lib/bibjson' #36

Open
janosh opened this issue Jan 6, 2023 · 0 comments
Open

Import error: Cannot find module 'lib/bibjson' #36

janosh opened this issue Jan 6, 2023 · 0 comments

Comments

@janosh
Copy link

janosh commented Jan 6, 2023

The server crashes when adding this to remark plugins. Had to manually go into node_modules and add .js to internal (relative) package imports. Has anyone else seen this error?

error when starting dev server:
Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'node_modules/.pnpm/[email protected]/node_modules/remark-bibliography/lib/bibjson' imported from node_modules/.pnpm/[email protected]/node_modules/remark-bibliography/lib/index.js
    at new NodeError (node:internal/errors:400:5)
    at finalizeResolution (node:internal/modules/esm/resolve:260:11)
    at moduleResolve (node:internal/modules/esm/resolve:879:10)
    at defaultResolve (node:internal/modules/esm/resolve:1087:11)
    at nextResolve (node:internal/modules/esm/loader:161:28)
    at ESMLoader.resolve (node:internal/modules/esm/loader:834:30)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:415:18)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:77:40)
    at link (node:internal/modules/esm/module_job:76:36)
 ELIFECYCLE  Command failed with exit code 1.
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