-
Notifications
You must be signed in to change notification settings - Fork 293
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
Arc ssr (server side) CSS can not loaded. #350
Comments
Dear friends who were worried like me, I tried to use "react-calendar" for "redux-ssr." By the way, there is an error in the "Server Webpack" setting. First
I reinstalled "webpack env". lastly
I modified the file "webpack.config.js". then
If you look at it, you've added an instrument called "pos." Separate this server or client. In addition, there are a few other problems.
I think we'll need to rewrite the version of "wepback-block" that changes to "module.rules."
for example
I used it this way. |
I always use it well. Thank you. (ARC ssr)
When using "react-calendar" there is a conflict with "node_modules/react-calendar/dist/entry.js".
Probably.
There seems to be a problem with the "server webpack config".
The way "issue" in 2017 is correctly invoked in "Client Config" and is correctly invoked through "Css-loader," but is before "Styled-Component".
`
C:\Users\test\Desktop\projects\test\admin\node_modules\react-calendar\dist\Calendar.css:1
(function (exports, require, module, __filename, __dirname) { .react-calendar {
^
SyntaxError: Unexpected token .
at new Script (vm.js:51:7)
at createScript (vm.js:136:10)
at Object.runInThisContext (vm.js:197:10)
at Module._compile (module.js:613:28)
at Object.Module._extensions..js (module.js:660:10)
at Module.load (module.js:561:32)
at tryModuleLoad (module.js:501:12)
at Function.Module._load (module.js:493:3)
at Module.require (module.js:593:17)
at require (internal/module.js:11:18)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! arc@0.1.0 start:
node .
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the arc@0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
`
Other people seem to be having problems, and I wonder if there is no way to solve them at all.
I've tried to figure out a number of ways, but eventually, I think I'll need a manual on how to add it to "Asset.json."
Isn't there anyone nice who solved it in a different way?
The text was updated successfully, but these errors were encountered: