stylex
stylex copied to clipboard
[@stylexjs/webpack-plugin] Yarn Plug'n'Play Cannot find package '@babel/plugin-transform-modules-commonjs'
Describe the issue
Cannot find package '@babel/plugin-transform-modules-commonjs'
see https://github.com/facebook/stylex/commit/1e0933c6b543730974f2cf1f66c2d74defaf938d#diff-ca9a5ec2c1a865ca7d717cfaed22c11c91459fefce687dccc92ca910c1409c5eR237
Expected behavior
I hope this error message will not be prompted
Steps to reproduce
- git clone https://github.com/facebook/stylex
- cd apps/webpack-example
- corepack enable && yarn set version stable
- yarn && yarn build
Test case
No response
Additional comments
No response
@nmn Any suggestions?
Start by testing https://www.npmjs.com/package/stylex-webpack
The webpack plugin has many issues and fixing it might take longer than trying this other plugin.