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
When adding the @vanilla-extract/vite-plugin to the vite-react-ts config, the internal module resolution fails, complaining that the package from nodebox's node_modules have a name field.
error when starting dev server:
Error: Couldn't find parent package.json with a name field from '/nodebox'
at Object.getPackageInfo (nodebox:///nodebox/node_modules/.store/@vanilla-extract/[email protected]/node_modules/@vanilla-extract/integration/dist/vanilla-extract-integration.cjs.dev.js:338:11)
at configResolved (nodebox:///nodebox/node_modules/.store/@vanilla-extract/[email protected]/node_modules/@vanilla-extract/vite-plugin/dist/vanilla-extract-vite-plugin.cjs.dev.js:85:33)
at eval (nodebox:///nodebox/node_modules/.store/[email protected]/node_modules/vite/dist/node/chunks/dep-ca21228b.js:62127:28)
at Array.map (<anonymous>)
at resolveConfig (nodebox:///nodebox/node_modules/.store/[email protected]/node_modules/vite/dist/node/chunks/dep-ca21228b.js:62127:14)
at async createServer (nodebox:///nodebox/node_modules/.store/[email protected]/node_modules/vite/dist/node/chunks/dep-ca21228b.js:61191:20)
at async CAC.eval (nodebox:///nodebox/node_modules/.store/[email protected]/node_modules/vite/dist/node/cli.js:741:24)
Bug report
Packages affected
Description of the problem
When adding the
@vanilla-extract/vite-plugin
to thevite-react-ts
config, the internal module resolution fails, complaining that the package from nodebox'snode_modules
have aname
field.The package referenced in the error does have one. It does not have a "parent package" (ie,
@vanilla-extract
) however.https:/vanilla-extract-css/vanilla-extract/blob/fa7105066a5fbb70822af89939abcc48731aeb2e/packages/integration/package.json#L2
https:/vanilla-extract-css/vanilla-extract/blob/951131127feee1e1a0a13b0b4e11e9ae2ba26536/packages/vite-plugin/package.json#L2
What were you doing when the problem occurred?
vite-react-ts
Link to sandbox: link
Your Environment
The text was updated successfully, but these errors were encountered: