Skip to content

Commit

Permalink
fix: Fix file/module not found errors due to paths that were hardcode…
Browse files Browse the repository at this point in the history
…d at compile time

Fixed by temporarily using the `@bjoluc/ncc-import-meta-fix` NPM package

Fixes #30
  • Loading branch information
bjoluc committed Mar 26, 2022
1 parent 0db636c commit 86ca71b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 19 deletions.
32 changes: 16 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
"@babel/preset-env": "^7.16.11",
"@babel/preset-react": "^7.16.7",
"@babel/preset-typescript": "^7.16.7",
"@bjoluc/ncc-import-meta-fix": "0.33.4",
"@bjoluc/semantic-release-config-npm": "^2.0.1",
"@jspsych/plugin-fullscreen": "^1.1.0",
"@jspsych/plugin-html-keyboard-response": "^1.1.0",
Expand All @@ -74,7 +75,6 @@
"@types/update-notifier": "^5.1.0",
"@types/uuid": "^8.3.4",
"@types/yargs": "^17.0.9",
"@vercel/ncc": "^0.33.3",
"axios": "^0.25.0",
"chalk": "^5.0.0",
"clean-webpack-plugin": "^4.0.0",
Expand Down
3 changes: 1 addition & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// see https://www.typescriptlang.org/tsconfig to better understand tsconfigs
"include": ["src", "types"],
"compilerOptions": {
"module": "esnext",
"module": "es2020",
"target": "es2020",
"lib": ["dom", "esnext"],
"importHelpers": true,
Expand Down Expand Up @@ -30,7 +30,6 @@
"skipLibCheck": true,
// error out if import and file system have a casing mismatch. Recommended by TS
"forceConsistentCasingInFileNames": true,
// `tsdx build` ignores this option, but it is commonly used when type-checking separately with `tsc`
"noEmit": true,
"downlevelIteration": true
}
Expand Down

0 comments on commit 86ca71b

Please sign in to comment.