-
-
Notifications
You must be signed in to change notification settings - Fork 543
Closed
Labels
Description
Expected Behavior
I want to import everything (including TS source codes in node_modules/
) :
register({
ignore: [],
compilerOptions: { module: 'CommonJS' }
});
https://github.com/EasyWebApp/MarkCell/blob/7b43ea0/source/File.ts#L26-L29
Actual Behavior
OS | result |
---|---|
Windows | everything is OK |
Linux | TypeError: Unable to require file: node_modules/xxx/source/yyy.tsx |
Mac | TypeError: Unable to require file: node_modules/xxx/source/yyy.tsx |
error on Linux
https://travis-ci.com/github/EasyWebApp/mark-wiki/builds/155135722
error on Mac
Steps to reproduce the problem
git clone https://github.com/EasyWebApp/mark-wiki.git
cd mark-wiki/
npm install
npm run build
Minimal reproduction
Specifications
- ts-node version: 8.8.1
- TypeScript version: 3.8.3
- tsconfig.json, if you're using one:
{
"compilerOptions": {
"module": "ESNext",
"moduleResolution": "Node",
"resolveJsonModule": true,
"experimentalDecorators": true,
"jsx": "react",
"jsxFactory": "createCell",
"target": "ES5",
"lib": ["ES2019", "DOM"]
},
"include": ["source/**/*"]
}
- node version: 12.16.1
- If Windows, are you using WSL or WSL2?: No