-
Notifications
You must be signed in to change notification settings - Fork 862
Uncaught SyntaxError: Unexpected token import #1167
Comments
@tomhermans does jquery exist in |
Yes. checked the folder and even re-done npm install. no messages |
@tomhermans I can't reproduce on the same version of node and I'm on the exact same version of macOS. Just to make sure, did you build the theme assets with If |
@tomhermans any update on this issue? |
I started over with a fresh FoundationPress and issue is gone. Not really a clue what has changed though.. |
@tomhermans that's great! We updated the packages for webpack and babel-loader and also optimized the javascript build/watch tasks in #1169 and #1196. I'm guessing one of these updates were what resolved your issue. Closing this out. |
Uncaught SyntaxError: Unexpected token import #1167 in app.js
import $ from 'jquery';
How can this bug be reproduced?
load the page with FoundationPress activated
check console.
mobile menu for instance doesn't work
What did you expect to happen?
that JS gets compiled correctly
What happened instead?
error on line 1
Please List the Following:
OS & version:
Mac OSX 10.11.6
Node version (node -v) [Node v4+ is required] :
node 5.6
FoundationPress version (see line 3 in package.json):
"version": "2.10.4",
Foundation version (found in
node_modules/foundation-sites/package.json
) :"foundation-sites@6.4.3",
The text was updated successfully, but these errors were encountered: