GithubHelp home page GithubHelp logo

isomorphic-webpack-demo's Introduction

isomorphic-webpack-demo

A demo showing how to setup isomorphic-webpack.

Setup

To start the server:

git clone https://github.com/gajus/isomorphic-webpack-demo.git
cd ./isomorphic-webpack-demo
npm install
export DEBUG=express:application,isomorphic-webpack
npm start

This will start the server on http://127.0.0.1:8000/.

Scope of the demo

The demo is intentionally lightweight.

The generated output is limited to:

<!doctype html>
<html>
  <head></head>
  <body>
    <div id='app'>
      <div class="app-___style___greetings" data-reactroot="" data-reactid="1" data-react-checksum="72097819">Hello, World!</div>
    </div>

    <script src='/static/app.js'></script>
  </body>
</html>

Raise an issue to request additions to this demonstration.

isomorphic-webpack-demo's People

Contributors

gajus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

isomorphic-webpack-demo's Issues

Git clone - Permission denied (publickey)

Hey,
When I tried clone repo like this (according to docs):
git clone [email protected]:gajus/isomorphic-webpack-demo.git
I got error:

Cloning into 'isomorphic-webpack-demo'...
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Getting "self is not defined" on start

Hey!
I was checking out your demo, but stumbled on this issue quite fast after installation and running.

ReferenceError: self is not defined
    at isomorphic-webpack:195:30
    at isomorphic-webpack:190:47
    at module.exports (isomorphic-webpack:212:68)
    at Object.<anonymous> (isomorphic-webpack:440:36)
    at __webpack_require__ (isomorphic-webpack:20:30)
    at Object.<anonymous> (isomorphic-webpack:88:14)
    at __webpack_require__ (isomorphic-webpack:20:30)
    at evalBundleCode ([...]/isomorphic-webpack-demo/node_modules/isomorphic-webpack/dist/factories/createIsomorphicWebpack.js:141:12)
    at[...]/isomorphic-webpack-demo/src/bin/server.js:86:41
    at Layer.handle [as handle_request] ([...]/isomorphic-webpack-demo/node_modules/router/lib/layer.js:93:5)

Just fyi :)

Getting error message: cannot determine entry module ID

Awesome work. Hopefully, I'm not too late to the party. Anyway, whenever I tried to load the app in my browser, I get the following error:
Error: Cannot determine entry module ID. at evalBundleCode (C:\jssandbox\isomorphic-webpack-demo\node_modules\isomorphic-webpack\dist\factories\createIsomorphicWebpack.js:134:13) at C:/jssandbox/isomorphic-webpack-demo/src/bin/server.js:62:30 at Layer.handle [as handle_request] (C:\jssandbox\isomorphic-webpack-demo\node_modules\router\lib\layer.js:93:5) at next (C:\jssandbox\isomorphic-webpack-demo\node_modules\router\lib\route.js:144:13) at Route.dispatch (C:\jssandbox\isomorphic-webpack-demo\node_modules\router\lib\route.js:109:3) at handle (C:\jssandbox\isomorphic-webpack-demo\node_modules\router\index.js:520:11) at Layer.handle [as handle_request] (C:jssandbox\isomorphic-webpack-demo\node_modules\router\lib\layer.js:93:5) at C:\jssandbox\isomorphic-webpack-demo\node_modules\router\index.js:296:22 at Function.process_params (C:\jssandbox\isomorphic-webpack-demo\node_modules\router\index.js:354:12) at next (C:\jssandbox\isomorphic-webpack-demo\node_modules\router\index.js:290:10)

Any idea why?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.