-
Notifications
You must be signed in to change notification settings - Fork 33
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
Cannot read property 'search' of undefined #47
Comments
Sorry for the late response. This seems like a bug on my side, would you be able to provide me with a small sample project of the bug? I am using this plugin in Vue with no issues. |
I have same error when adding terser to build process. |
I've run into this issue as well. As a workaround, I've patched the I'm not making this a PR yet, since the changed |
Hi,
I'm developing a JS library that assumes to be used into higher language projects such as Angular, React, Vue ...
In this project I need to run a Web worker that's why I used your plugin to do so.
I've managed to run it on multiple projects but not all
react-script start
build
+serve -s build
)The error that occured is
Cannot read property 'search' of undefined
Located in
Here is what I digged from browser console
When I tried to use the content of
createInlineWorkerFactory
into the steps offuncToScope
I achieved to getlines[0]
, making the error strange to meConfiguration
Dependencies
"rollup": "1.32.1",
"rollup-plugin-web-worker-loader": "^1.5.0",
Rollup
Import and creation
I tried a second test with setting
inline: false
in webWorkerLoader config, the error was gone but I got another one that told me the worker JS file included a<
character because the content was my built html file.I would like to know how to properly set your plugin to be compatible with a react and Vue projects.
Do not hesitate to ask more .
Thanks
The text was updated successfully, but these errors were encountered: