Closed yukukotani closed 1 year ago
@astahmer Could this be because of the bundledDependencies
field in package.json?
Can we get rid of it?
Can't say for sure as I didnt try it yet (i'm away this weekend) but this might be the issue yes
The point of having bundledDependencies
here is to make the extension working in the IDE even if a user didnt yet install node_modules
(with pnpm i
or something similar) in the opened workspace
But I also remember putting that bundledDependencies
directly in the vscode
package at some point so, we will have to test it to confirm that this one (in the config
package) is necessary
in the meantime, since in the npmrc
we already have those:
link-workspace-packages=true
prefer-workspace-packages=true
another fix might be to use versions instead of workspace dependencies
Removed the bundledDependencies
from the config package since it's already listed in the vscode package
Description
The distribution of @pandacss/config includes node_modules directory which contains preset-base and preset-panda. Those packages depend on
@pandacss/types
with versionworkspace:*
and it causes the error below onnpm i
.ref: https://www.npmjs.com/package/@pandacss/config/v/0.3.1?activeTab=code
Link to Reproduction
https://www.npmjs.com/package/@pandacss/config/v/0.3.1?activeTab=code
Steps to reproduce
npx create-next-app@latest --use-npm
npm install -D @pandacss/dev
JS Framework
No response
Panda CSS Version
0.3.1
Browser
No response
Operating System
Additional Information
No response