Skip to content
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

Setup basic SSR #13

Merged
merged 33 commits into from
Mar 30, 2018
Merged

Setup basic SSR #13

merged 33 commits into from
Mar 30, 2018

Conversation

tonyhhyip
Copy link
Contributor

No description provided.

@howawong
Copy link
Contributor

@tonyhhyip got following issues.
When running yarn start, the Web shows the following error.

Uncaught TypeError: window.gtag is not a function
    at clientEntry.js:29
    at n (createTransitionManager.js:46)
    at createTransitionManager.js:65
    at Array.forEach (<anonymous>)
    at Object.notifyListeners (createTransitionManager.js:64)
    at E (createBrowserHistory.js:78)
    at createBrowserHistory.js:169
    at Object.n [as confirmTransitionTo] (createTransitionManager.js:36)
    at Object.R [as push] (createBrowserHistory.js:149)
    at r.handleClick (Link.js:54)

and when running npm run build && npm run start
I got the following err

Refused to apply style from 'http://192.168.1.54:3000/app.8c28eaf31cb025a1d4a25456a38c18f7.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

and the UI becomes

screen shot 2018-03-30 at 12 16 13 pm

@howawong howawong self-requested a review March 30, 2018 05:39
@howawong howawong self-assigned this Mar 30, 2018
@tonyhhyip
Copy link
Contributor Author

@howawong I have put the document, please check it

@howawong howawong merged commit 749b131 into g0vhk-io:master Mar 30, 2018
howawong added a commit that referenced this pull request Mar 30, 2018
- Add babel, webapck and build scripts
- Update Dockerfile
- Add server and client entries
- Add page.ejs
- Update README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants