System.import in isomorphic app
See original GitHub issueUsing webpack-2 and using the System.import
feature. I cannot get it to work on an isomorphic app which errors with System.import
is not a function, since System
doesn’t exist on the server.
Any ideas for how to get it working on both?
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
javascript - Import in isomorphic app - Stack Overflow
omg... import looks like that: import {Dispatcher} from 'flux';. this file is located in folder "flux", i've created index.js file within this folder...
Read more >Developing isomorphic applications using webpack - Medium
It uses react-dom to render ReactElement and append the resulting DOM to the #app element. /src/app/index.js import React from 'react'; import ReactDOM from...
Read more >Chapter 11. Optimizing for production - Isomorphic Web ...
In an isomorphic app, your server's performance is just as important as the browser performance. When we first started working with React at...
Read more >Tutorial - Setting Up a Simple Isomorphic React app - jmfurlott
Isomorphism · A user can visit your site without having Javascript enabled (and at least have a usable version) · There isn't an...
Read more >The Pain and the Joy of creating isomorphic apps in ReactJS
Sometimes we make isomorphic apps too. The fundamental difference between regular SPA and isomorphic SPA is that in isomorphic SPA you will ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Three options:
polyfill
Transpile with babel
https://github.com/thgreasi/babel-plugin-system-import-transformer
Build with webpack
@mmahalwy Hi! You can’t import a path without a prefix like that, see https://github.com/webpack/webpack/issues/2401