Skip to content
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

Vue yarn build error #53

Closed
jacobwise opened this issue Oct 5, 2018 · 2 comments
Closed

Vue yarn build error #53

jacobwise opened this issue Oct 5, 2018 · 2 comments

Comments

@jacobwise
Copy link

ERROR in static/js/vendor.15653ba71d70b10565f1.js from UglifyJs Name expected [./node_modules/nba/src/sport-vu.js:1,0][static/js/vendor.15653ba71d70b10565f1.js:6,6]

running yarn build, here is my .bablerc file

{ "presets": [ [ "env", { "modules": false, "targets": { "browsers": ["> 1%", "last 2 versions", "not ie <= 8"] } } ], "stage-2", "es2015" ], "plugins": ["transform-runtime"], "env": { "test": { "presets": ["env", "es2015", "stage-2"], "plugins": ["istanbul"] } } }

@bttmly
Copy link
Owner

bttmly commented Oct 5, 2018

Haven't seen this kind of problem before but looks related to this I guess

can you show the application code where you're importing and using this library?

You could try using the compiled nba/dist/nba file which should be ES5 compatible.

@jacobwise
Copy link
Author

Thank you, changing to the compiled version fixed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants