Skip to content

Error: Could not load TypeScript compiler with NPM package name #1264

@BananaAcid

Description

@BananaAcid
$ ncc run src/index.ts 

ncc: Version 0.38.3
ncc: Compiling file index.js into ESM
Error: Module build failed (from ../../../c/ProgramData/nvm/v23.11.0/node_modules/@vercel/ncc/dist/ncc/loaders/ts-loader.js):
Error: Could not load TypeScript compiler with NPM package name `/mnt/c/ProgramData/nvm/v23.11.0/node_modules/@vercel/ncc/dist/ncc/typescript.js`. Are you sure it is correctly installed?
    at Object.loader (/mnt/c/ProgramData/nvm/v23.11.0/node_modules/@vercel/ncc/dist/ncc/loaders/ts-loader.js.cache.js:32:197745)
    at /mnt/c/ProgramData/nvm/v23.11.0/node_modules/@vercel/ncc/dist/ncc/index.js.cache.js:23:2001732
    at /mnt/c/ProgramData/nvm/v23.11.0/node_modules/@vercel/ncc/dist/ncc/index.js.cache.js:23:389111
    at _done (eval at create (/mnt/c/ProgramData/nvm/v23.11.0/node_modules/@vercel/ncc/dist/ncc/index.js.cache.js:21:81694), <anonymous>:9:1)
    at eval (eval at create (/mnt/c/ProgramData/nvm/v23.11.0/node_modules/@vercel/ncc/dist/ncc/index.js.cache.js:21:81694), <anonymous>:34:22)

but;

$ ls /mnt/c/ProgramData/nvm/v23.11.0/node_modules/@vercel/ncc/dist/ncc/typescript.js
/mnt/c/ProgramData/nvm/v23.11.0/node_modules/@vercel/ncc/dist/ncc/typescript.js

so file exists ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions