Error that occurred after applying yarn berry
ensnif060305 opened this issue · comments
No error occurred when StyleX and node_modules were applied, but this error occurred after applying yarn-berry.
failed to load config from /Users/ensnif/Desktop/testTypescr8pt/vite.config.ts
error when starting dev server:
Error: @stylexjs/babel-plugin tried to access @babel/types (a peer dependency) but it isn't provided by its ancestors; this makes the require call ambiguous and unsound.Required package: @babel/types
Required by: @stylexjs/babel-plugin@virtual:dedc94b72f93a5cd83123e5eaeb4b6b3f75c87d8d38e0b1bc50d3e5013c3b4a25c615acc0c03a1161862ff6d3d98a010b20caecc264dd25ebc23d65479fd61d9#npm:0.3.0 (via /Users/ensnif/Desktop/testTypescr8pt/.yarn/virtual/@stylexjs-babel-plugin-virtual-8f5b661400/3/.yarn/berry/cache/@stylexjs-babel-plugin-npm-0.3.0-dfa2d73404-10c0.zip/node_modules/@stylexjs/babel-plugin/lib/)Ancestor breaking the chain: vite-plugin-stylex@virtual:25cf5da0accfd65c6b6491442e6c749dbc0c4216392635cd2b09fa27a4a950949685942de155c43f63f0c34b51234ca7b669e1562f2b5c4343e141199cd490c1#npm:0.4.1
Require stack:
- /Users/ensnif/Desktop/testTypescr8pt/.yarn/virtual/@stylexjs-babel-plugin-virtual-8f5b661400/3/.yarn/berry/cache/@stylexjs-babel-plugin-npm-0.3.0-dfa2d73404-10c0.zip/node_modules/@stylexjs/babel-plugin/lib/index.js
at require$$0.Module._resolveFilename (/Users/ensnif/Desktop/testTypescr8pt/.pnp.cjs:9474:13)
at Module._load (node:internal/modules/cjs/loader:901:27)
at require$$0.Module._load (/Users/ensnif/Desktop/testTypescr8pt/.pnp.cjs:9365:31)
at Module.require (node:internal/modules/cjs/loader:1115:19)
at require (node:internal/modules/helpers:130:18)
at Object. (/Users/ensnif/Desktop/testTypescr8pt/.yarn/virtual/@stylexjs-babel-plugin-virtual-8f5b661400/3/.yarn/berry/cache/@stylexjs-babel-plugin-npm-0.3.0-dfa2d73404-10c0.zip/node_modules/@stylexjs/babel-plugin/lib/index.js:3:9)
at Module._compile (node:internal/modules/cjs/loader:1241:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1295:10)
at require$$0.Module._extensions..js (/Users/ensnif/Desktop/testTypescr8pt/.pnp.cjs:9517:33)
at Module.load (node:internal/modules/cjs/loader:1091:32)