Skip to content
This repository has been archived by the owner on May 28, 2021. It is now read-only.

webpackJsonp is not defined #53

Closed
lucduong opened this issue May 26, 2017 · 12 comments
Closed

webpackJsonp is not defined #53

lucduong opened this issue May 26, 2017 · 12 comments

Comments

@lucduong
Copy link

Uncaught ReferenceError: webpackJsonp is not defined
at frontend.js:1

This error occurs when I run as production mode.

@icebob
Copy link
Owner

icebob commented May 26, 2017

Which branch?

@lucduong
Copy link
Author

@icebob In master branch. I pulled the latest commit of master branch.

@icebob
Copy link
Owner

icebob commented May 26, 2017

I updated dependencies and fixed some issues. Try again.

@lucduong
Copy link
Author

I pull the newest source but it still happened.
http://localhost:3000/login

screen shot 2017-05-26 at 3 48 27 pm

@icebob
Copy link
Owner

icebob commented May 26, 2017 via email

@lucduong
Copy link
Author

I'm using yarn and I tried 3 steps:

1. yarn
2. yarn build
3. yarn start

I will try to use npm instead of.

@lucduong
Copy link
Author

@icebob npm install give the same result.

@icebob
Copy link
Owner

icebob commented May 26, 2017

It's weird. Are there any webpack error in console during build?

@lucduong
Copy link
Author

@icebob There is no error, build has done.

@icebob
Copy link
Owner

icebob commented May 27, 2017

What was the solution?

@icebob icebob closed this as completed May 27, 2017
@lucduong
Copy link
Author

@icebob The issue wasn't solved yet. I said that "no error, build has done" for your question.
Everything fine except running at production got error.

@icebob icebob reopened this May 29, 2017
@lucduong
Copy link
Author

May I figured out why it happened in login page.

screen shot 2017-05-29 at 2 36 33 pm

I added one more line before frontend.js

This is my bad.... script(src='/app/vendor.js')

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

No branches or pull requests

2 participants