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
I tried the following code, prismjs is a CJS module available on NPM.
export*asPrismfrom"prismjs"
That line crashes Vite:
Plugin: vite:imports
File: /App/prism.ts
TypeError: Cannot read property 'forEach' of undefined
at transformCjsImport (C:\Project\node_modules\vite\dist\node\chunks\dep-85227760.js:53329:20)
at TransformContext.transform (C:\Project\node_modules\vite\dist\node\chunks\dep-85227760.js:53224:67)
at processTicksAndRejections (node:internal/process/task_queues:93:5)
at async Object.transform (C:\Project\node_modules\vite\dist\node\chunks\dep-85227760.js:59967:30)
at async transformRequest (C:\Project\node_modules\vite\dist\node\chunks\dep-85227760.js:66205:29)
at async C:\Project\node_modules\vite\dist\node\chunks\dep-85227760.js:66292:32
System Info
vite version: 2.0.0-beta.12
Operating System: Win 10
Node version: 15
Package manager (npm/yarn/pnpm) and version: npm 7
The text was updated successfully, but these errors were encountered:
Describe the bug
I tried the following code,
prismjs
is a CJS module available on NPM.That line crashes Vite:
System Info
vite
version: 2.0.0-beta.12The text was updated successfully, but these errors were encountered: