-
Notifications
You must be signed in to change notification settings - Fork 42
Does not compile with TypeScript 4.7 module = nodenext #106
Comments
Will investigate. |
I have the same problem. A hotfix or a workaround, would be really appreciated! 😄 |
been busy 😢 ill try today |
well a temporary workaround would be // @ts-ignore
import { AlpacaClient } from "@master-chief/alpaca"; and im able to compile with {
"compilerOptions": {
"target": "es2020",
"module": "NodeNext",
"strict": true,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true
}
} |
You can also do.. {
"compilerOptions": {
...
"noImplicitAny": false,
}
} |
I don't know why its unable to find the typings, something to do with the way |
Hmm trying one more thing. |
Yeah idk. Works fine on every non-dev typescript version for me. |
Hmmm interesting. I was using TypeScript version 4.7.3 there and got the error. I tried installing the 4.6.3 version and still got the same error.
|
@WinstonNau ill try |
@117 Maybe the reason is that {"type":"commonjs"} |
will try this! |
Thank you! Let me know if you might have a fix for this problem :) |
oh my god |
i'm going to write a new build script and config which generates the new declarations tomorrow. too tired right now |
delaying another day 😞 work is kicking my ass |
Ok! Before I publish it please test and let me know if this solves it for you. Try "dependencies": {
"@master-chief/alpaca": "github:117/alpaca"
}, I have tested this personally with the following tsconfig. {
"compilerOptions": {
"target": "es2020",
"module": "NodeNext",
"strict": true,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true
}
} |
@117 does not compile for me :( npx tsc
Environment:
cat tsconfig.json
node -v
|
Hi @117! |
no update ): |
v7 is on the way, you can track it here #113 |
I also received error TS7016 when trying to use @master-chief/alpaca v6.3.20 in a TS project using ESM with |
@117 I also tried |
Hey @117, today I noticed that the Line 24 in d4a2b7b
Instead of a |
Description
Can't compile TypeScript project using @master-chief/alpaca with
module = nodenext
in tsconfig.json.Expected
TypeScript compilation pass.
Reproduction
npm i @master-chief/alpaca
tsc
Logs
The text was updated successfully, but these errors were encountered: