New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Transform failed with x errors #3
Comments
How can I reproduce it? Could you provide a example project?
…On Fri, Jun 3, 2022 at 21:08 Guilherme Câmara ***@***.***> wrote:
I'm having this error when build my project
rendering chunks (3)...[vite-plugin-top-level-await] Transform failed with
209 errors: <stdin>:1:1829: ERROR: The symbol "e" has already been declared
<stdin>:1:1831: ERROR: The symbol "t" has already been declared
<stdin>:1:1833: ERROR: The symbol "_" has already been declared
<stdin>:1:1835: ERROR: The symbol "n" has already been declared
<stdin>:1:1837: ERROR: The symbol "i" has already been declared ... error
during build: Error: Transform failed with 209 errors: <stdin>:1:1829:
ERROR: The symbol "e" has already been declared <stdin>:1:1831: ERROR: The
symbol "t" has already been declared <stdin>:1:1833: ERROR: The symbol "_"
has already been declared <stdin>:1:1835: ERROR: The symbol "n" has already
been declared <stdin>:1:1837: ERROR: The symbol "i" has already been
declared ... at failureErrorWithLog (C:\freelance\utxo test app\utxo test
app\node_modules\esbuild\lib\main.js:1603:15) at C:\freelance\utxo test
app\utxo test app\node_modules\esbuild\lib\main.js:1392:29 at
C:\freelance\utxo test app\utxo test
app\node_modules\esbuild\lib\main.js:666:9 at handleIncomingPacket
(C:\freelance\utxo test app\utxo test
app\node_modules\esbuild\lib\main.js:763:9) at Socket.readFromStdout
(C:\freelance\utxo test app\utxo test
app\node_modules\esbuild\lib\main.js:632:7) at Socket.emit
(node:events:520:28) at addChunk (node:internal/streams/readable:315:12) at
readableAddChunk (node:internal/streams/readable:289:9) at
Socket.Readable.push (node:internal/streams/readable:228:10) at
Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
My vue plugins are:
`plugins: [
topLevelAwait({
// The export name of top-level await promise for each chunk module
promiseExportName: "__tla",
// The function to generate import names of top-level await promise in each chunk module
promiseImportName: i => `__tla_${i}`
}),
vue(),
// https://github.com/vuetifyjs/vuetify-loader/tree/next/packages/vite-plugin
vuetify({
autoImport: true,
}),
wasm({
})
],`
—
Reply to this email directly, view it on GitHub
<#3>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACWRBA5EZTEBIQXL42K6XFLVNH7T3ANCNFSM5XYXJE7A>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
hello think you for doing this, i have a problem; vite v2.9.13 building for production... 15:48:17
transforming (1300) node_modules\lodash-es\_createCtor.js
WARN Use of eval is strongly discouraged, as it poses security risks and may cause issues with minification 15:48:30
✓ 1349 modules transformed. 15:48:31
dist/assets/polyfills-legacy.67c34418.js 112.02 KiB / gzip: 44.29 KiB 15:48:50
dist/assets/index-legacy.466e9b4f.js 359.50 KiB / gzip: 104.06 KiB 15:48:50
dist/assets/NIM_Web_NIM_v9.2.0-legacy.01eff08b.js 669.90 KiB / gzip: 184.84 KiB 15:48:50
WARN 15:48:50
(!) Some chunks are larger than 500 KiB after minification. Consider:
- Using dynamic import() to code-split the application
- Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/guide/en/#outputmanualchunks
- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.
rendering chunks (2)...
ERROR [vite-plugin-top-level-await] Unexpected top-level statement "ExportDeclaration" in Rollup's output chunk. Please open an issue at https://github.com/Menci/vite-plugin-top-level-await/issues. 15:48:54
ERROR error during build: 15:48:54
Error: Unexpected top-level statement "ExportDeclaration" in Rollup's output chunk. Please open an issue at https://github.com/Menci/vite-plugin-top-level-await/issues.
at raiseUnexpectedNode (E:\Project\wail-chat\frontend\node_modules\vite-plugin-top-level-await\dist\utils\error.js:6:11)
at E:\Project\wail-chat\frontend\node_modules\vite-plugin-top-level-await\dist\transform.js:36:49
at Array.filter (<anonymous>)
at transformModule (E:\Project\wail-chat\frontend\node_modules\vite-plugin-top-level-await\dist\transform.js:26:30)
at E:\Project\wail-chat\frontend\node_modules\vite-plugin-top-level-await\dist\index.js:64:64
at Array.map (<anonymous>)
at Object.generateBundle (E:\Project\wail-chat\frontend\node_modules\vite-plugin-top-level-await\dist\index.js:61:57)
at async Bundle.generate (E:\Project\wail-chat\frontend\node_modules\rollup\dist\shared\rollup.js:16116:9)
at async E:\Project\wail-chat\frontend\node_modules\rollup\dist\shared\rollup.js:23732:27
at async catchUnfinishedHookActions (E:\Project\wail-chat\frontend\node_modules\rollup\dist\shared\rollup.js:23174:20) |
Could you please upload your project (or a minimal reproducible example)
for me to investigate this issue?
…On Thu, Jun 30, 2022 at 15:51 azhuang321 ***@***.***> wrote:
hello think you for doing this, i have a problem;
if i use @vitejs/plugin-legacy plugin, this plugin will throw error
vite v2.9.13 building for production... 15:48:17
transforming (1300) node_modules\lodash-es\_createCtor.js
WARN Use of eval is strongly discouraged, as it poses security risks and may cause issues with minification 15:48:30
✓ 1349 modules transformed. 15:48:31
dist/assets/polyfills-legacy.67c34418.js 112.02 KiB / gzip: 44.29 KiB 15:48:50
dist/assets/index-legacy.466e9b4f.js 359.50 KiB / gzip: 104.06 KiB 15:48:50
dist/assets/NIM_Web_NIM_v9.2.0-legacy.01eff08b.js 669.90 KiB / gzip: 184.84 KiB 15:48:50
WARN 15:48:50
(!) Some chunks are larger than 500 KiB after minification. Consider:
- Using dynamic import() to code-split the application
- Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/guide/en/#outputmanualchunks
- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.
rendering chunks (2)...
ERROR [vite-plugin-top-level-await] Unexpected top-level statement "ExportDeclaration" in Rollup's output chunk. Please open an issue at https://github.com/Menci/vite-plugin-top-level-await/issues. 15:48:54
ERROR error during build: 15:48:54
Error: Unexpected top-level statement "ExportDeclaration" in Rollup's output chunk. Please open an issue at https://github.com/Menci/vite-plugin-top-level-await/issues.
at raiseUnexpectedNode (E:\Project\wail-chat\frontend\node_modules\vite-plugin-top-level-await\dist\utils\error.js:6:11)
at E:\Project\wail-chat\frontend\node_modules\vite-plugin-top-level-await\dist\transform.js:36:49
at Array.filter (<anonymous>)
at transformModule (E:\Project\wail-chat\frontend\node_modules\vite-plugin-top-level-await\dist\transform.js:26:30)
at E:\Project\wail-chat\frontend\node_modules\vite-plugin-top-level-await\dist\index.js:64:64
at Array.map (<anonymous>)
at Object.generateBundle (E:\Project\wail-chat\frontend\node_modules\vite-plugin-top-level-await\dist\index.js:61:57)
at async Bundle.generate (E:\Project\wail-chat\frontend\node_modules\rollup\dist\shared\rollup.js:16116:9)
at async E:\Project\wail-chat\frontend\node_modules\rollup\dist\shared\rollup.js:23732:27
at async catchUnfinishedHookActions (E:\Project\wail-chat\frontend\node_modules\rollup\dist\shared\rollup.js:23174:20)
—
Reply to this email directly, view it on GitHub
<#3 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACWRBA5V5QLINO677X2MZXDVRVGYDANCNFSM5XYXJE7A>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
ok wait please |
SORRY it is my fault ,it’s working |
@azhuang321 what was the issue? :) |
Same problem here during the build:
In vite.config.ts :
Any idea of what is happening ? |
@amorin-gladia Are there any example project for reproducing? |
Closing since no response. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm having this error when building my project:
rendering chunks (3)...[vite-plugin-top-level-await] Transform failed with 209 errors: <stdin>:1:1829: ERROR: The symbol "e" has already been declared <stdin>:1:1831: ERROR: The symbol "t" has already been declared <stdin>:1:1833: ERROR: The symbol "_" has already been declared <stdin>:1:1835: ERROR: The symbol "n" has already been declared <stdin>:1:1837: ERROR: The symbol "i" has already been declared ... error during build: Error: Transform failed with 209 errors: <stdin>:1:1829: ERROR: The symbol "e" has already been declared <stdin>:1:1831: ERROR: The symbol "t" has already been declared <stdin>:1:1833: ERROR: The symbol "_" has already been declared <stdin>:1:1835: ERROR: The symbol "n" has already been declared <stdin>:1:1837: ERROR: The symbol "i" has already been declared ... at failureErrorWithLog (C:\freelance\utxo test app\utxo test app\node_modules\esbuild\lib\main.js:1603:15) at C:\freelance\utxo test app\utxo test app\node_modules\esbuild\lib\main.js:1392:29 at C:\freelance\utxo test app\utxo test app\node_modules\esbuild\lib\main.js:666:9 at handleIncomingPacket (C:\freelance\utxo test app\utxo test app\node_modules\esbuild\lib\main.js:763:9) at Socket.readFromStdout (C:\freelance\utxo test app\utxo test app\node_modules\esbuild\lib\main.js:632:7) at Socket.emit (node:events:520:28) at addChunk (node:internal/streams/readable:315:12) at readableAddChunk (node:internal/streams/readable:289:9) at Socket.Readable.push (node:internal/streams/readable:228:10) at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
My vue plugins are:
plugins: [ topLevelAwait({ // The export name of top-level await promise for each chunk module promiseExportName: "__tla", // The function to generate import names of top-level await promise in each chunk module promiseImportName: i => ``__tla_${i}`` }), vue(), // https://github.com/vuetifyjs/vuetify-loader/tree/next/packages/vite-plugin vuetify({ autoImport: true, }), wasm({ }) ],
The text was updated successfully, but these errors were encountered: