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

docs init function throwing error #5

Open
justynspooner opened this issue Apr 24, 2023 · 4 comments
Open

docs init function throwing error #5

justynspooner opened this issue Apr 24, 2023 · 4 comments
Assignees

Comments

@justynspooner
Copy link

Ran:

docts init my-serverless-project

Got this error:

node:internal/process/esm_loader:97
    internalBinding('errors').triggerUncaughtException(
                              ^

Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'typescript' imported from /Users/<user>/.volta/tools/image/packages/docts-cli/lib/node_modules/@rollup/plugin-typescript/dist/es/index.js
Did you mean to import typescript/lib/node_modules/typescript/lib/typescript.js?
    at new NodeError (node:internal/errors:399:5)
    at packageResolve (node:internal/modules/esm/resolve:889:9)
    at moduleResolve (node:internal/modules/esm/resolve:938:20)
    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'
}
@kwameopareasiedu
Copy link
Owner

@justynspooner Thanks for reporting this issue.

For me to investigate, kindly post the following information:

  1. Node version installed
  2. docts version installed

@kwameopareasiedu kwameopareasiedu self-assigned this Apr 27, 2023
@kwameopareasiedu
Copy link
Owner

Closing this issue for lack of activity

@skikrumb-ryan
Copy link

skikrumb-ryan commented Jun 24, 2024

Hi there,

Latest version installed on Node v20.10.0 I am also getting this error.

Any help would be appreciated

node:internal/modules/esm/resolve:844
  throw new ERR_MODULE_NOT_FOUND(packageName, fileURLToPath(base), null);
        ^

Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'typescript' imported from /Users/<user>/.config/yarn/global/node_modules/@rollup/plugin-typescript/dist/es/index.js
    at packageResolve (node:internal/modules/esm/resolve:844:9)
    at moduleResolve (node:internal/modules/esm/resolve:901:20)
    at defaultResolve (node:internal/modules/esm/resolve:1121:11)
    at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:396:12)
    at ModuleLoader.resolve (node:internal/modules/esm/loader:365:25)
    at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:240:38)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:85:39)
    at link (node:internal/modules/esm/module_job:84:36) {
  code: 'ERR_MODULE_NOT_FOUND'
}

Node.js v20.10.0

@kwameopareasiedu
Copy link
Owner

Thanks for the info. I will check on this soon...

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

3 participants