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
Describe the bug
When building a production bundle using vite build, the @shopify/prettier-plugin-liquid creates an exception:
RollupError: Identifier "x" has already been declared
at error (file:https:///Library/WebServer/Documents/opensense/node_modules/rollup/dist/es/shared/parseAst.js:337:30)
at Module.error (file:https:///Library/WebServer/Documents/opensense/node_modules/rollup/dist/es/shared/node-entry.js:12737:16)
at BlockScope.addDeclaration (file:https:///Library/WebServer/Documents/opensense/node_modules/rollup/dist/es/shared/node-entry.js:7520:32)
at Identifier.declare (file:https:///Library/WebServer/Documents/opensense/node_modules/rollup/dist/es/shared/node-entry.js:7188:39)
at VariableDeclarator.declareDeclarator (file:https:///Library/WebServer/Documents/opensense/node_modules/rollup/dist/es/shared/node-entry.js:10178:17)
at VariableDeclaration.initialise (file:https:///Library/WebServer/Documents/opensense/node_modules/rollup/dist/es/shared/node-entry.js:11843:24)
at new NodeBase (file:https:///Library/WebServer/Documents/opensense/node_modules/rollup/dist/es/shared/node-entry.js:4607:14)
at new VariableDeclaration (file:https:///Library/WebServer/Documents/opensense/node_modules/rollup/dist/es/shared/node-entry.js:11815:1)
at SwitchCase.parseNode (file:https:///Library/WebServer/Documents/opensense/node_modules/rollup/dist/es/shared/node-entry.js:4718:27)
at new NodeBase (file:https:///Library/WebServer/Documents/opensense/node_modules/rollup/dist/es/shared/node-entry.js:4606:14)
If you run npm run dev, it will compile and work as expected. When you run npm run build, it will try to compile but eventually throws an exception for Identifier "x" has already been declared. I've isolated this issue to this package. If I comment out this package and its usage, my production builds succeed.
The text was updated successfully, but these errors were encountered:
Describe the bug
When building a production bundle using
vite build
, the@shopify/prettier-plugin-liquid
creates an exception:I've created a sample app using stackblitz that reproduces the issue. https://stackblitz.com/edit/vitejs-vite-xivzdt?file=src%2FApp.svelte.
If you run
npm run dev
, it will compile and work as expected. When you runnpm run build
, it will try to compile but eventually throws an exception forIdentifier "x" has already been declared
. I've isolated this issue to this package. If I comment out this package and its usage, my production builds succeed.The text was updated successfully, but these errors were encountered: