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

ENOENT: no such file or directory, lstat 'true' #54

Open
coler-j opened this issue Nov 4, 2020 · 2 comments
Open

ENOENT: no such file or directory, lstat 'true' #54

coler-j opened this issue Nov 4, 2020 · 2 comments

Comments

@coler-j
Copy link

coler-j commented Nov 4, 2020

When using this with my nextjs webpack setup I get the following error:

ENOENT: no such file or directory, lstat 'true'

Error: ENOENT: no such file or directory, lstat 'true'
    at Object.lstatSync (fs.js:1007:3)
    at resolveConfigPath (/Users/user/Documents/GitHub/repo/node_modules/tsconfig-paths/lib/tsconfig-loader.js:43:31)
    at loadSyncDefault (/Users/user/Documents/GitHub/repo/node_modules/tsconfig-paths/lib/tsconfig-loader.js:26:22)
    at tsConfigLoader (/Users/user/Documents/GitHub/repo/node_modules/tsconfig-paths/lib/tsconfig-loader.js:20:22)
    at configLoader (/Users/user/Documents/GitHub/repo/node_modules/tsconfig-paths/lib/config-loader.js:29:22)
    at Object.loadConfig (/Users/user/Documents/GitHub/repo/node_modules/tsconfig-paths/lib/config-loader.js:8:12)
    at new TsconfigPathsPlugin (/Users/user/Documents/GitHub/repo/node_modules/tsconfig-paths-webpack-plugin/lib/plugin.js:20:42)
    at Object.<anonymous> (/Users/user/Documents/GitHub/repo/next.config.js:20:7)
    at Module._compile (internal/modules/cjs/loader.js:1137:30)
    at Module.m._compile (/Users/user/Documents/GitHub/repo/node_modules/ts-node/src/index.ts:858:23)

@coler-j
Copy link
Author

coler-j commented Nov 4, 2020

The incoming filename in tsconfig-loader is the value "true" .... instead of a file name.

image

@coler-j
Copy link
Author

coler-j commented Nov 4, 2020

Seems to be some interaction with TS_NODE_PROJECT property

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