-
-
Notifications
You must be signed in to change notification settings - Fork 26.8k
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
after migrating from 0.9.5 to 1.0.0 i'm getting error message. __webpack_require__.i(...) is not a function #2473
Comments
Good morning @mromanoff, Could you please share the file |
Can you please provide a reproducible demo? This would help greatly to diagnose the issue. |
@codedavinci here is content of host.js file
I'm running this project locally. HOST is always === DEV_API_HOST here is {
"name": "atlas",
"version": "0.1.0",
"private": true,
"dependencies": {
"@mars/heroku-js-runtime-env": "^3.0.0",
"material-ui": "^0.18.1",
"moment": "^2.18.1",
"prop-types": "^15.5.10",
"react": "^15.5.4",
"react-dom": "^15.5.4",
"react-router-dom": "^4.1.1",
"react-tap-event-plugin": "^2.0.1"
},
"devDependencies": {
"react-scripts": "1.0.7"
},
"scripts": {
"start": "HTTPS=true react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test --env=jsdom"
}
} |
Which line is it erroring on exactly? Can you show a screenshot? |
here is test repo. after |
@gaearon here is screenshot. |
@mromanoff did you try to while ago, I noticed that heroku wasn't passing down dynamically the variables in dev environments. I don't know if you do have it set up, but you should have a |
@gaearon obviously you can request api end point. you don't have this in your local env. but i get this error message even before i request API. |
@codedavinci process.env.NODE_ENV set by heroku. and it is was shown by console.log correctly. |
@mromanoff for some reason, I am not being able to reproduce this error.. have you tried to delete the I am not getting this error at all :/ |
@codedavinci i did this before as it described on your migration docs. now i did this again and this helped at the second try. i don't know why? maybe combination of new npm 5 or just my sloppiness. Sorry guys for a red flag and thank you for your quick response. |
@mromanoff No problem !! I am glad it helped. :) |
Description
after migrating from 0.9.5 to 1.0.0 i'm getting error message. webpack_require.i(...) is not a function
Expected behavior
should not be error out.
Environment
npm ls react-scripts
(if you haven’t ejected):react-scripts@1.0.7
same withreact-scripts@1.0.0
node -v
:v7.10.0
npm -v
:5.0.0
Operating system:
macOS Sierra v 10.12.5
Browser and version:
Chrome 58.03029
file url.js
browser pause on exception on last line of this file content
The text was updated successfully, but these errors were encountered: