All Questions
30
questions
1
vote
1
answer
2k
views
Express router: TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be of type string
I know I am struggling in this problem.
I am working on a webpack Universal React App but i got this error message and I have no idea where it come from:
TypeError [ERR_INVALID_ARG_TYPE]: The first ...
0
votes
1
answer
2k
views
webpack: express can't find bundle Error 404
I know this question is was asked a lot but i have tried everything and nothing work!
Here the thing: I am working on an Isomorphic React App for practise witch a big copy of this tutorial of 2017 ...
2
votes
0
answers
374
views
Webpack not serving background image nested folder + images
I am using webpack(3.6.0) for an isomorphic react app and have everything working except the background image in my css file. All other styles work, the image is being output to my /dist folder as ...
2
votes
2
answers
2k
views
How to configure module.alias properly
I would like to use resolve.alias feature from webpack in my projects using React Starter Kit.
For example:
Instead this:
import Component from '../../components/Component
I would like to use
...
2
votes
1
answer
393
views
Isomorphic Rendering with Webpack
As a thought exercise, I've been trying to create a blogging application using Isomorphic React. After some google searching I've come across these three tutorials:
Medium: A Modern Isomorphic stack:
...
1
vote
1
answer
1k
views
The root path "/" does not match the reactjs declared route on server side rendering, when webpack middleware is used
While studying Reactjs Server Side Rendering, on a node Express web server, and Webpack middleware, I'm finding hard to understand why the root route "/" matching component is not passed into the html,...
1
vote
0
answers
390
views
Routing and rendering React components server-side
I'm having a very difficult time trying to figure out what we should do to make React isomorphic. I'm following some tutorials and that's what I have right now:
I created a server.js file that starts ...
10
votes
1
answer
36k
views
Use fs module in React.js,node.js, webpack, babel,express
I have a requirement in which I am rendering view in which I display a form. On submit of form i need to gather the form data and create a file and save form data as JSON in that file. I am using ...
0
votes
0
answers
205
views
Loading Server Configs in Isomorphic redux applications
We have a common logger utility which uses Bunyan framework to log the information to files etc.
import logger '../Logger';
So i am using Isomorphic redux applications where action files executes
...
5
votes
3
answers
2k
views
React code splitting and server side rendering with System.import or require.ensure
I am investigating code splitting for use in a React application.
I can't seem to find a way to introduce code splitting (and importing) for server side render which carries through to the client ...
2
votes
0
answers
671
views
Webpack with babel-loader for react corrupts image files
I am using webpack with babel-loader to transform .jsx react files.
However, adding a file-loader or style- and css-loader does not correctly process the images required() in the react components or ...
5
votes
3
answers
4k
views
Universal rendering for react app based on create-react-app
I have an app based on the create-react-app starter kit and need to switch to universal/server rendering due to SEO issues.
Is there an easy way or example of taking the create-react-app teamplate ...
1
vote
1
answer
1k
views
Window is not defined while importing an npm package?
I'm trying to learn how to create and publish an npm package.
I have created an npm package, https://github.com/nitte93/OnBoarding
for my learning purpose.
https://www.npmjs.com/package/onBoarding
...
1
vote
1
answer
2k
views
SCSS compilation in an isomorphic React app
I'm writing an isomorphic React app based on :
https://github.com/choonkending/react-webpack-node
Instead of css modules used in the examples I'd like to use scss though. And for some reason I'm ...
2
votes
1
answer
387
views
Using Alias defined in webpack for client side react rendering but having issue
Using Alias defined in webpack for client side react rendering but when trying to render on Node server using Express having issue.
I have defined some alias in webpack example
resolve: {
...