mholt / PapaParse

Fast and powerful CSV (delimited text) parser that gracefully handles large files and malformed input
http://PapaParse.com
MIT License
12.3k stars 1.14k forks source link

RollupError when deploying to Cloudflare #1056

Open mendrinos opened 1 month ago

mendrinos commented 1 month ago
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 commented 1 month ago

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

ThomasSimonsen20 commented 3 weeks ago

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