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
After I use comand yarn add tsparticles tsparticles-engine react-tsparticles add these packages, I run yarn run dev command. than I got some exceptions.
✘ [ERROR] [plugin vite:dep-scan] Failed to resolve entry for package "tsparticles". The package may have incorrect main/module/exports specified in its package.json: Failed to resolve entry for package "tsparticles". The package may have incorrect main/module/exports specified in its package.json.
node_modules/vite/dist/node/chunks/dep-27bc1ab8.js:38429:10:
38429 │ throw new Error(`Failed to resolve entry for package "${id}". ` +
╵ ^
This error came from the "onResolve" callback registered here:
node_modules/vite/dist/node/chunks/dep-27bc1ab8.js:36968:18:
36968 │ build.onResolve({
╵ ~~~~~~~~~
✘ [ERROR] [plugin vite:dep-scan] Failed to resolve entry forpackage "tsparticles". The package may have incorrect main/module/exports specifiedin its package.json: Failed to resolve entry forpackage "tsparticles". The package may have incorrect main/module/exports specifiedin its package.json.
node_modules/vite/dist/node/chunks/dep-27bc1ab8.js:38429:10:
38429 │ throw new Error(`Failed to resolve entry for package "${id}". ` +
╵ ^
at packageEntryFailure (E:\demo\node_modules\vite\dist\node\chunks\dep-27bc1ab8.js:38429:11)
at resolvePackageEntry (E:\demo\node_modules\vite\dist\node\chunks\dep-27bc1ab8.js:38425:9)
at tryNodeResolve (E:\demo\node_modules\vite\dist\node\chunks\dep-27bc1ab8.js:38232:20)
at Context.resolveId (E:\demo\node_modules\vite\dist\node\chunks\dep-27bc1ab8.js:38040:28)
at Object.resolveId (E:\demo\node_modules\vite\dist\node\chunks\dep-27bc1ab8.js:36609:55)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async resolve (E:\demo\node_modules\vite\dist\node\chunks\dep-27bc1ab8.js:36821:26)
at async E:\demo\node_modules\vite\dist\node\chunks\dep-27bc1ab8.js:36978:34
at async callback (E:\demo\node_modules\esbuild\lib\main.js:921:28)
at async handleRequest (E:\demo\node_modules\esbuild\lib\main.js:701:30)
This error came from the "onResolve" callback registered here:
node_modules/vite/dist/node/chunks/dep-27bc1ab8.js:36968:18:
36968 │ build.onResolve({
╵ ~~~~~~~~~
at setup (E:\demo\node_modules\vite\dist\node\chunks\dep-27bc1ab8.js:36968:19)
at handlePlugins (E:\demo\node_modules\esbuild\lib\main.js:843:23)
at Object.buildOrServe (E:\demo\node_modules\esbuild\lib\main.js:1137:7)
at E:\demo\node_modules\esbuild\lib\main.js:2079:17
at new Promise (<anonymous>)
at Object.build (E:\demo\node_modules\esbuild\lib\main.js:2078:14)
at Object.build (E:\demo\node_modules\esbuild\lib\main.js:1927:51)
at E:\demo\node_modules\vite\dist\node\chunks\dep-27bc1ab8.js:36769:54
at Array.map (<anonymous>)
The plugin "vite:dep-scan" was triggered by this import
src/layout/login/index.tsx:12:25:
12 │ import { loadFull } from "tsparticles";
╵ ~~~~~~~~~~~~~
Build failed with 1 error:
node_modules/vite/dist/node/chunks/dep-27bc1ab8.js:38429:10: ERROR: [plugin: vite:dep-scan] Failed to resolve entry forpackage "tsparticles". The package may have incorrect main/module/exports specifiedin its package.json: Failed to resolve entry forpackage "tsparticles". The package may have incorrect main/module/exports specifiedin its package.json.
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/core instead.
Contact Details
sjr_vip@126.com
What happened?
Describe the bug
After I use comand
yarn add tsparticles tsparticles-engine react-tsparticles
add these packages, I runyarn run dev
command. than I got some exceptions.other issue: vitejs/vite#7754
Reproduction
https://stackblitz.com/edit/vitejs-vite-iyeunl?file=package.json&terminal=dev
System Info
Used Package Manager
yarn
Logs
Validations
Version
2.0.5
Which library are you using?
React.js (react-tsparticles, react-particles-js)
tsParticles Configuration
What browsers are you seeing the problem on?
Firefox
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: