You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
The current implementation of the NextJS plugin doesn't use Flow as other packages like @stylexjs/babel-plugin, so it doesn't include TypeScript or Flow type definitions.
This causes the following error when instantiating the module within a consuming applications next.config.js if you have it included in your tsconfig:
Could not find a declaration file for module '@stylexjs/nextjs-plugin'.
Describe a solution you'd like
This was recently added to the Rollup plugin in #60, closing #46
Describe alternatives you've considered
This will follow the same solution as other packages, so I wouldn't recommend an alternative.
Additional context
N/A.
Open to giving this a shot, I've not used Flow before but I should be able to follow the Rollup PR.
The text was updated successfully, but these errors were encountered:
The nextjs plugin will be overhauled soon since there are a lot of issues with our Webpack plugin and NextJS plugin. See the issue I created about this for information.
As such, it's not worth spending too much time adding types to the current NextJS plugin.
Is your feature request related to a problem? Please describe.
The current implementation of the NextJS plugin doesn't use Flow as other packages like @stylexjs/babel-plugin, so it doesn't include TypeScript or Flow type definitions.
This causes the following error when instantiating the module within a consuming applications
next.config.js
if you have it included in yourtsconfig
:Describe a solution you'd like
This was recently added to the Rollup plugin in #60, closing #46
Describe alternatives you've considered
This will follow the same solution as other packages, so I wouldn't recommend an alternative.
Additional context
N/A.
Open to giving this a shot, I've not used Flow before but I should be able to follow the Rollup PR.
The text was updated successfully, but these errors were encountered: