Skip to content
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

RollupError when deploying to Cloudflare #1056

Open
mendrinos opened this issue May 31, 2024 · 3 comments
Open

RollupError when deploying to Cloudflare #1056

mendrinos opened this issue May 31, 2024 · 3 comments

Comments

@mendrinos
Copy link

11:23:00.516 [error] [nitro] RollupError: Expected ',', got 'undefined' in /opt/buildhome/repo/node_modules/papaparse/papaparse.js
11:23:00.516 
11:23:00.516 
11:23:00.516 50:     var URL = global.URL || global.webkitURL || null;
11:23:00.516 51:     var code = moduleFactory.toString();
11:23:00.516 52:     return Papa.BLOB_URL || (Papa.BLOB_URL = URL.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if ("undefined"...
11:23:00.517                                                                                                                                                                   ^
11:23:00.517 53:   }
11:23:00.518 [error] Expected ',', got 'undefined' in /opt/buildhome/repo/node_modules/papaparse/papaparse.js
11:23:00.518   at getRollupError (node_modules/rollup/dist/es/shared/parseAst.js:396:41)
11:23:00.519   at convertProgram (node_modules/rollup/dist/es/shared/parseAst.js:1060:26)
11:23:00.519   at parseAst (node_modules/rollup/dist/es/shared/parseAst.js:2204:12)
11:23:00.519   at tryParse (node_modules/@rollup/plugin-commonjs/dist/es/index.js:17:12)
11:23:00.519   at analyzeTopLevelStatements (node_modules/@rollup/plugin-commonjs/dist/es/index.js:37:15)
11:23:00.519   at Object.transformAndCheckExports (node_modules/@rollup/plugin-commonjs/dist/es/index.js:2090:68)
11:23:00.519   at Object.transform (node_modules/@rollup/plugin-commonjs/dist/es/index.js:2290:41)
11:23:00.519   at node_modules/rollup/dist/es/shared/node-entry.js:19774:40 
11:23:00.520 
11:23:00.520 [error] Expected ',', got 'undefined' in /opt/buildhome/repo/node_modules/papaparse/papaparse.js
11:23:00.632 Failed: Error while executing user command. Exited with error code: 1
11:23:00.643 Failed: build command exited with code: 1
11:23:02.223 Failed: error occurred while running build command
@brunopbarbosa
Copy link

Getting the same error on a nuxt 3 project running nuxt build.

@ThomasSimonsen20
Copy link

@brunopbarbosa I'm running into the same issue with Nuxt 3, did u find a solution?

@nsina
Copy link

nsina commented Oct 24, 2024

@brunopbarbosa I'm running into the same issue with Nuxt 3, did u find a solution?

You can try to bypass this issue for the affected component by wrapping it in <ClientOnly> so it only renders on client side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants