We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello,
Using create-react-app when developing npm start the library works fine. But then when i build it i got this error
npm start
Uncaught ReferenceError: f is not defined
heres is the sample code
const processData = (xlsData: string[]): Promise => new Promise((resolve, reject) => {
const arrangeData: ArrangeData[] = [];
xlsData.forEach((data: RowData, forIndex: number, arr: any) => { ... if (forIndex === arr.length - 1) { resolve({ arrangeData, groups }); } }); });
const [processWorkers] = useWorkers(processData);
//on Click const process = async (): void => { const { arrangeData, groups } = await processWorkers(data); .... }`
can you help me with this?
thank you in advance
The text was updated successfully, but these errors were encountered:
I also have this issue, any idea? I'm using [email protected]
Sorry, something went wrong.
Same problem
Don't use Promise in worker
alewin
naorpeled
No branches or pull requests
Hello,
Using create-react-app when developing
npm start
the library works fine. But then when i build it i got this errorUncaught ReferenceError: f is not defined
heres is the sample code
const processData = (xlsData: string[]): Promise => new Promise((resolve, reject) => {
const arrangeData: ArrangeData[] = [];
xlsData.forEach((data: RowData, forIndex: number, arr: any) => {
...
if (forIndex === arr.length - 1) {
resolve({ arrangeData, groups });
}
});
});
const [processWorkers] = useWorkers(processData);
//on Click
const process = async (): void => {
const { arrangeData, groups } = await processWorkers(data);
....
}`
can you help me with this?
thank you in advance
The text was updated successfully, but these errors were encountered: