TypeStrong / TypeStrong/ts-loader

node8.11.1 reported an error, reported incompatibility

Open
#1,623 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
3.5k
Forks
439
Avg merge
17h 17m
Merged PRs (30d)
2

Description

ERROR Failed to compile with 1 errors 16:28:37

error in ./src/views/modules/generator/HelloWorld.vue

Module build failed: TypeError: loaderContext.getOptions is not a function
at getLoaderOptions (E:\Desktop\structure_report_byHMRRC_VUE\node_modules\ts-loader\dist\index.js:91:41)
at Object.loader (E:\Desktop\structure_report_byHMRRC_VUE\node_modules\ts-loader\dist\index.js:14:21)

@ ./src/views/modules/generator/HelloWorld.vue 8:0-136
@ ./src/views ^./.*.vue$
@ ./src/router/import-development.js
@ ./src/router/index.js
@ ./src/main.js
@ multi (webpack)-dev-server/client?http://127.0.0.1:8001 webpack/hot/dev-server babel-polyfill ./src/main.js

The project given to me by my mentor can only be started with node 8.11.1, but the ts-loader reports incompatibility, so which version should I download?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the reported failure in node_modules/ts-loader/dist/index.js and the Node 8.11.1 environment. Check the ts-loader compatibility requirements for that Node and webpack setup; done means identifying a supported version or confirming the incompatibility with a reproducible configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript, webpack
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.