Code Monkey home page Code Monkey logo

demo-for-chattanooga-python-user-group's People

Contributors

jhossepaul avatar nickjj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

demo-for-chattanooga-python-user-group's Issues

Doesn't work due to react update etc.

Hi Nick,

thanks for the great topics regarding Webpack + Flask + React. Unfortunately, as always with open source software, there is no back compatibility with new module updates. Due to React and Webpack updates the example doesn't work out of the box.

Error 1 (webpackffails):
Module not found: Error: Cannot resolve module 'react/lib/ReactMount'
@ ./assets/scripts/App.jsx 1:349-380

Error 2 (webpack fails):
ERROR in chunk app_css [entry]
[name].[chunkhash].js
Cannot use [chunkhash] for chunk in '[name].[chunkhash].js' (use [hash] instead)

Error 3 (in the console if you would solve issue 1&2):
_react2.default.render is not a function

Here is my knowledge of React was over.

Would it be feasible to fix the example?
Thanks.

Extra js file built?

I know this is just a demo project, so feel free to ignore this issue. When I do npm run build it get the following assets created in the build subdir:

(demo-flask-webpack)user@flyer:~/development/demo-for-chattanooga-python-user-group$ tree -h build
build
├── [ 248]  manifest.json
└── [4.0K]  public
    ├── [ 151]  app_css.e08ad6a2ac6ad609ad1b.css
    ├── [1.6K]  app_css.e08ad6a2ac6ad609ad1b.js
    ├── [626K]  app_js.9ae3cd553b1a5d3586d5.js
    └── [4.0K]  images
        └── [ 21K]  life-after-webpack.3c98e77705fd928eace803d8fc163e60.jpg

2 directories, 5 files
(demo-flask-webpack)user@flyer:~/development/demo-for-chattanooga-python-user-group$ cat build/manifest.json | python -m json.tool
{
    "assets": {
        "app_css.css": "app_css.e08ad6a2ac6ad609ad1b.css",
        "app_js.js": "app_js.9ae3cd553b1a5d3586d5.js",
        "images/life-after-webpack.jpg": "images/life-after-webpack.3c98e77705fd928eace803d8fc163e60.jpg"
    },
    "publicPath": "http://localhost:2992/assets/"
}

Is there a way to suppress creating app_css.hash.js?

It looks like a js file being created for the app_css entry with most of it's content removed by theextract-text-webpack-plugin. It, correctly, isn't included in the manifest.json.

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.