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

Cannot load the code in Chrome #65

Open
liqiug opened this issue Jun 4, 2020 · 1 comment
Open

Cannot load the code in Chrome #65

liqiug opened this issue Jun 4, 2020 · 1 comment

Comments

@liqiug
Copy link

liqiug commented Jun 4, 2020

Dear Sir,
I tried to download the code and load into Chrome with unpacked,
first time : I get error said cannot laod ./lib/jquery.min.js.
I download and add the jquery.min.js to ./lib folder,
then I get error said "Uncaught SyntaxError: Cannot use import statement outside a module"
for background.js first 2 lines:
import analytics from './analytics';
import dataLayer from './dataLayer';

Is there a way I can get a loaded code for starting the project?

Thanks,
Gordon

@KevinSheedy
Copy link
Owner

Hi Gordon
Have a look at gulpfile.babel.js
I think you'll need to run gulp to build the project before you can run it in the browser.
(I should add these instructions to the README.md)

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