-
Notifications
You must be signed in to change notification settings - Fork 169
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
Causing in Unexpected Token: eof (undefined) when building for production #343
Comments
I had the same issue. The root cause of it was the recently released moment v2.25.1 package. Workaround was to pin moment to v2.24.0 (yarn resolution worked for me). |
thanks @sbflynn Is momentjs is a dependency of ember-pikaday through ember-cli-moment-shim? |
This should be fixed with the release of |
The issue that made us downgrade moment has been fixed in ember-moment-shim 3.8.0. adopted-ember-addons/ember-pikaday#343
The issue that made us downgrade moment has been fixed in ember-moment-shim 3.8.0. adopted-ember-addons/ember-pikaday#343
The issue that made us downgrade moment has been fixed in ember-moment-shim 3.8.0. adopted-ember-addons/ember-pikaday#343
The issue that made us downgrade moment has been fixed in ember-moment-shim 3.8.0. adopted-ember-addons/ember-pikaday#343
The issue that made us downgrade moment has been fixed in ember-moment-shim 3.8.0. adopted-ember-addons/ember-pikaday#343
I got this error when building for productiong (ember b --prod):
Build Error (UglifyWriter)
Unexpected token: eof (undefined)
Here's the full error log 👍
ENV Summary:
TIME: Mon May 04 2020 11:38:57 GMT+0800 (Philippine Standard Time)
TITLE: ember
ARGV:
EXEC_PATH: /usr/local/bin/node
TMPDIR: /tmp
SHELL: /bin/bash
PATH:
PLATFORM: linux x64
FREEMEM: 1545768960
TOTALMEM: 8010620928
UPTIME: 1306
LOADAVG: 1.4599609375,0.95849609375,0.73779296875
CPUS:
ENDIANNESS: LE
VERSIONS:
ERROR Summary:
at ee (/home/aman/Dev/scorpio/stacs-ui/node_modules/terser/dist/bundle.min.js:1:19603)
at c (/home/aman/Dev/scorpio/stacs-ui/node_modules/terser/dist/bundle.min.js:1:28093)
at l (/home/aman/Dev/scorpio/stacs-ui/node_modules/terser/dist/bundle.min.js:1:28184)
at f (/home/aman/Dev/scorpio/stacs-ui/node_modules/terser/dist/bundle.min.js:1:28237)
at N (/home/aman/Dev/scorpio/stacs-ui/node_modules/terser/dist/bundle.min.js:1:38341)
at /home/aman/Dev/scorpio/stacs-ui/node_modules/terser/dist/bundle.min.js:1:30437
at /home/aman/Dev/scorpio/stacs-ui/node_modules/terser/dist/bundle.min.js:1:28825
at /home/aman/Dev/scorpio/stacs-ui/node_modules/terser/dist/bundle.min.js:1:32169
at /home/aman/Dev/scorpio/stacs-ui/node_modules/terser/dist/bundle.min.js:1:32279
at /home/aman/Dev/scorpio/stacs-ui/node_modules/terser/dist/bundle.min.js:1:28825
at UglifyWriter
-
- created here: --at UglifyWriter.Plugin (/home/aman/Dev/scorpio/stacs-ui/node_modules/broccoli-plugin/index.js:7:31)
at new UglifyWriter (/home/aman/Dev/scorpio/stacs-ui/node_modules/broccoli-uglify-sourcemap/index.js:38:10)
at UglifyWriter (/home/aman/Dev/scorpio/stacs-ui/node_modules/broccoli-uglify-sourcemap/index.js:33:12)
at Class.postprocessTree (/home/aman/Dev/scorpio/stacs-ui/node_modules/ember-cli-uglify/index.js:54:50)
at projectOrAddon.addons.reduce (/home/aman/Dev/scorpio/stacs-ui/node_modules/ember-cli/lib/utilities/addon-process-tree.js:6:25)
at Array.reduce ()
at addonProcessTree (/home/aman/Dev/scorpio/stacs-ui/node_modules/ember-cli/lib/utilities/addon-process-tree.js:4:32)
at EmberApp.addonPostprocessTree (/home/aman/Dev/scorpio/stacs-ui/node_modules/ember-cli/lib/broccoli/ember-app.js:866:12)
at EmberApp.host.addonPostprocessTree (/home/aman/Dev/scorpio/stacs-ui/node_modules/ember-auto-import/js/auto-import.js:108:20)
at EmberApp.toTree (/home/aman/Dev/scorpio/stacs-ui/node_modules/ember-cli/lib/broccoli/ember-app.js:1825:17)
-
- (end) --at UglifyWriter
-
- created here: --at UglifyWriter.Plugin (/home/aman/Dev/scorpio/stacs-ui/node_modules/broccoli-plugin/index.js:7:31)
at new UglifyWriter (/home/aman/Dev/scorpio/stacs-ui/node_modules/broccoli-uglify-sourcemap/index.js:38:10)
at UglifyWriter (/home/aman/Dev/scorpio/stacs-ui/node_modules/broccoli-uglify-sourcemap/index.js:33:12)
at Class.postprocessTree (/home/aman/Dev/scorpio/stacs-ui/node_modules/ember-cli-uglify/index.js:54:50)
at projectOrAddon.addons.reduce (/home/aman/Dev/scorpio/stacs-ui/node_modules/ember-cli/lib/utilities/addon-process-tree.js:6:25)
at Array.reduce ()
at addonProcessTree (/home/aman/Dev/scorpio/stacs-ui/node_modules/ember-cli/lib/utilities/addon-process-tree.js:4:32)
at EmberApp.addonPostprocessTree (/home/aman/Dev/scorpio/stacs-ui/node_modules/ember-cli/lib/broccoli/ember-app.js:866:12)
at EmberApp.host.addonPostprocessTree (/home/aman/Dev/scorpio/stacs-ui/node_modules/ember-auto-import/js/auto-import.js:108:20)
at EmberApp.toTree (/home/aman/Dev/scorpio/stacs-ui/node_modules/ember-cli/lib/broccoli/ember-app.js:1825:17)
-
- (end) --at ee (/home/aman/Dev/scorpio/stacs-ui/node_modules/terser/dist/bundle.min.js:1:19603)
at c (/home/aman/Dev/scorpio/stacs-ui/node_modules/terser/dist/bundle.min.js:1:28093)
at l (/home/aman/Dev/scorpio/stacs-ui/node_modules/terser/dist/bundle.min.js:1:28184)
at f (/home/aman/Dev/scorpio/stacs-ui/node_modules/terser/dist/bundle.min.js:1:28237)
at N (/home/aman/Dev/scorpio/stacs-ui/node_modules/terser/dist/bundle.min.js:1:38341)
at /home/aman/Dev/scorpio/stacs-ui/node_modules/terser/dist/bundle.min.js:1:30437
at /home/aman/Dev/scorpio/stacs-ui/node_modules/terser/dist/bundle.min.js:1:28825
at /home/aman/Dev/scorpio/stacs-ui/node_modules/terser/dist/bundle.min.js:1:32169
at /home/aman/Dev/scorpio/stacs-ui/node_modules/terser/dist/bundle.min.js:1:32279
at /home/aman/Dev/scorpio/stacs-ui/node_modules/terser/dist/bundle.min.js:1:28825
=================================================================================
My env info:
ember-cli: 3.15.2
node: 10.13.0
os: linux x64
It builds normally when I removed this addon.
Thanks
The text was updated successfully, but these errors were encountered: