typescript-go icon indicating copy to clipboard operation
typescript-go copied to clipboard

TS2305: Module '"@stylexjs/babel-plugin"' has no exported member 'Options'.

Open jfirebaugh opened this issue 2 weeks ago • 4 comments

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

jfirebaugh avatar Dec 08 '25 20:12 jfirebaugh

This package looks quite broken. https://arethetypeswrong.github.io/?p=%40stylexjs%2Fbabel-plugin%400.17.2

jakebailey avatar Dec 08 '25 20:12 jakebailey

But, 5.9 and 6.0 do not seem to complain.

jakebailey avatar Dec 08 '25 20:12 jakebailey

Does 5.9/6.0 run into an issue with "module": "nodenext"?

DanielRosenwasser avatar Dec 11 '25 18:12 DanielRosenwasser

No errors with 5.9 or 6.0 when adding "module": "nodenext" to the above repro.

jfirebaugh avatar Dec 12 '25 14:12 jfirebaugh