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
Error in Build regarding router-loader #49
Comments
@bytewiz, the pages folder should be used to only define files with routes, its very necesaary because route loader tries to add magic in every file inside pages folder, as you have added Compnent inside pages folder, its breaking the code, try moving Component to app folder and it should work just fine. Let me know if this helps! |
@tirthbodawala thanks, that seemed to work out but ran into another problem loading an image and the weird thing is I am loading in an image from the same location that works. Also tried to load both from the /ressources an one works the other doesn't this is the error
|
@bytewiz Can you please share the code of |
Also to solve the error for Ubuntu: Mac (with brew) |
@tirthbodawala Let me try that and additionally: Loading the image from
like so: |
@tirthbodawala That worked 👍 Now only problem I am left with is
But let me see if I can solve that ✌️ |
Please move the |
@tirthbodawala I moved |
@tirthbodawala I can't share the code, but let me try to reproduce it with another example ✌️ then I will share that |
@bytewiz I just create a gitter channel for react-pwa if you wish to join: |
After following the instructions for routing from the documentation, and running the build script it errors out with the below:
Note:
For the route itself I am wrapping the component in a container using
connect()
fromreact-redux
but shouldn't kill the routing?./src/routes.js
./src/pages/index.js
And here
Component
is simply pointing to a container component like:Let me know if additional info is required ✌️
The text was updated successfully, but these errors were encountered: