-
Notifications
You must be signed in to change notification settings - Fork 76
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
Doesn't work with code splitting (file.split is not a function) #119
Comments
Here's my vue.config.js (with code splitting disabled to make it work):
|
@michelvermeulen I've got the same issue. Have you managed to find a workaround? |
Did you find out anything to solve this problem? |
@hakanaltindis I tried different old versions of node and some of them worked. node:10, node:11, node:12, node:13, node:14 worked, but more latest versions didn't. |
Hi everybody, I used a workaround and worked for me. :) I got the same stack trace and message like below.
Suddenly, I realize that my code had some errors and then webpack tried to write error's file name to console.. But file did not exist. So webpack threw an exception. So I added the below code statment in this file After that I can see my real errors and I fixed them. Finally my code was built. :) I hope it can help you. |
Describe the bug
I have a NPM error when building for production which doesn't happen when I disable code splitting.
TypeError: file.split is not a function
To Reproduce
If the bug is a build error, please include the exact command used, and any terminal output.
npm run build
Expected behavior
It should compile.
Reproducible Example
Additional context
package.json
The text was updated successfully, but these errors were encountered: