Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
"window is not defined" error when worker is set to true #655
This is a duplicate of #585. When worker is set to true, main.chunk.js?papaworker throws an uncaught reference error: "window is not defined."
If this is a configuration issue, more information is needed about how to resolve it. In #585 @pokoli referenced Can Papa Parse be loaded asynchronously (after the page loads)? section of the FAQ, but the FAQ in its current state doesn't mention anything about the PAPA_SCRIPT path variable.
This appears to be a common problem when workers are enabled in PapaParse, as several users have been looking for help in #585.
referenced this issue
Apr 19, 2019
When I set the SCRIPT_PATH manually, I get the following error:
Someone else experienced this issue, too...
Got it... here are the final steps that worked for me.
var Papa = require("papaparse");