typescript-go
typescript-go copied to clipboard
TS2305: Module '"@stylexjs/babel-plugin"' has no exported member 'Options'.
Steps to reproduce
package.json
{
"dependencies": {
"@stylexjs/babel-plugin": "0.16.2"
}
}
tsconfig.json
{
"compilerOptions": {
"skipLibCheck": true
}
}
stylex.ts
import { Options } from '@stylexjs/babel-plugin'
Behavior with [email protected]
No errors.
Behavior with tsgo
stylex.ts:1:10 - error TS2305: Module '"@stylexjs/babel-plugin"' has no exported member 'Options'.
1 import { Options } from '@stylexjs/babel-plugin'
~~~~~~~
Found 1 error in stylex.ts:1
This package looks quite broken. https://arethetypeswrong.github.io/?p=%40stylexjs%2Fbabel-plugin%400.17.2
But, 5.9 and 6.0 do not seem to complain.
Does 5.9/6.0 run into an issue with "module": "nodenext"?
No errors with 5.9 or 6.0 when adding "module": "nodenext" to the above repro.