fix: TS5011 errors with TypeScript 6.0: transpileModule called with rootDir: undefined#1695
fix: TS5011 errors with TypeScript 6.0: transpileModule called with rootDir: undefined#1695tweet wants to merge 2 commits into
Conversation
…ootDir: undefined backport change to webpack 4 version
|
If we want to merge and release this we'll also need to migrate this branch to use trusted publishing |
|
I'm considering adding webpack 4 support back directly and not just on 8.x. Could you confirm if the branch in this pull request works for you? #1697 If you |
|
I've test this branch's build, but build with failure because of different error in ./src/xxx/xxx.vue?vue&type=script&lang=ts
Syntax Error: TypeError: sourceMapConsumer.destroy is not a function
at Array.forEach (<anonymous>)Syntax Error: TypeError: module.addError is not a function
at Array.forEach (<anonymous>) |
|
Ah thanks - let me investigate! |
|
Can you confirm which specific version of webpack 4 you are using please? Also, where is your version of source-map coming from? 0.6.1 I mean. |
|
I've updated the branch version to guard against unusable versions of |
|
Some of dependency paths: |
|
okay great - so it's a transitive dependency of webpack itself. Good to know. Does the updated branch work for you? It's now aligned with the webpack-4 branch of ts-loader which didn't actually use source-map at all. With my changes it only uses source-map if the expected features are present. 0.6.1 does not have those. |
|
This error still reported. Syntax Error: TypeError: module.addError is not a function
at Array.forEach (<anonymous>) |
|
Can you provide more information please? Is there a stack trace? |
|
Oh, the upper errors info were processed by friendly-errors-plugin, original is this |
|
I've just made one more change which I hope should handle that. Could you give it a test when you get a moment please? I'm hoping that should be it |
|
My project build is successful now. |
|
Excellent - will probably be cutting a release with @acutmore later this week |
backport change to webpack 4 version
#1678