Code Monkey home page Code Monkey logo

minimal-react-webpack-babel-setup's Introduction

minimal-react-webpack-babel-setup's People

Contributors

domdumont avatar greenkeeper[bot] avatar parrker avatar rwieruch avatar

Stargazers

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

Watchers

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

minimal-react-webpack-babel-setup's Issues

deployed on live server

hello @rwieruch ,
nice work and good tutorial but i am facing some issues
on local i make the neccesary change for the build

"scripts": {
		"dev": "webpack --mode development",
		"build": "webpack --mode production",
		"start": "webpack-dev-server --config ./webpack.config.js --mode development",
		"test": "echo \"No test specified\" && exit 0"
	},

but on live is not working here is the url http://react.myseminars.com.cy

start error TypeError: run_simple() got an unexpected keyword argument 'keyfile'

@ start D:\git\Never-Blink
python server.py

WebSocket transport not available. Install eventlet or gevent and gevent-websocket for improved performance.
Traceback (most recent call last):
File "server.py", line 226, in
keyfile=os.path.join('backend', 'server.key'), certfile=os.path.join('backend', 'server.crt'))
File "D:\Python36\lib\site-packages\flask_socketio_init_.py", line 537, in run
use_reloader=use_reloader, **kwargs)
File "D:\Python36\lib\site-packages\flask\app.py", line 841, in run
run_simple(host, port, self, **options)
TypeError: run_simple() got an unexpected keyword argument 'keyfile'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ start: python server.py
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache_logs\2019-07-30T10_28_23_595Z-debug.log

An in-range update of webpack is breaking the build 🚨

The devDependency webpack was updated from 4.35.3 to 4.36.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

webpack is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

Release Notes for v4.36.0

Features

  • SourceMapDevToolPlugin append option now supports the default placeholders in addition to [url]
  • Arrays in resolve and parser options (Rule and Loader API) support backreferences with "..." when overriding options.
Commits

The new version differs by 42 commits.

  • 95d21bb 4.36.0
  • aa1216c Merge pull request #9422 from webpack/feature/dot-dot-dot-merge
  • b3ec775 improve merging of resolve and parsing options
  • 53a5ae2 Merge pull request #9419 from vankop/remove-valid-jsdoc-rule
  • ab75240 Merge pull request #9413 from webpack/dependabot/npm_and_yarn/ajv-6.10.2
  • 0bdabf4 Merge pull request #9418 from webpack/dependabot/npm_and_yarn/eslint-plugin-jsdoc-15.5.2
  • f207cdc remove valid jsdoc rule in favour of eslint-plugin-jsdoc
  • 31333a6 chore(deps-dev): bump eslint-plugin-jsdoc from 15.3.9 to 15.5.2
  • 036adf0 Merge pull request #9417 from webpack/dependabot/npm_and_yarn/eslint-plugin-jest-22.8.0
  • 37d4480 Merge pull request #9411 from webpack/dependabot/npm_and_yarn/simple-git-1.121.0
  • ce2a183 chore(deps-dev): bump eslint-plugin-jest from 22.7.2 to 22.8.0
  • 0beeb7e Merge pull request #9391 from vankop/create-hash-typescript
  • bf1a24a #9391 resolve super call discussion
  • bd7d95b #9391 resolve discussions, AbstractMethodError
  • 4190638 chore(deps): bump ajv from 6.10.1 to 6.10.2

There are 42 commits in total.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

unexpected token on <div> tag

just followed the setup and am getting this error.

any suggestions on how to resolve?

screen shot 2018-03-21 at 3 36 59 pm

index.js

import React from 'react';
import ReactDOM from 'react-dom';

const title = 'My Minimal React Webpack Babel Setup';

ReactDOM.render(
  <div>{title}</div>,
  document.getElementById('app')
);

module.hot.accept();

update:
works if you remove the div brackets and {} around title

new @babel packages

Can you update your documentation to include the new @babel/* packages?

Thanks,

Webpack 1 to Webpack 3

Maybe it is time to update the boilerplate project to Webpack 3. I would love to keep it minimal like it is right now, but just with the necessary technical upgrade under the hood. In another repository there has been such an upgrade to Webpack 3. Maybe it's a great blueprint to upgrade this boilerplate project too.

Maybe in a follow up PR I can upgrade the documentation for it too:

package-lock.json

Hi, great work on the boilerplate. I'm just curious, is the file "package-lock.json" needed in youre repo or should it be removed?

Getting an error while using it in codesandbox.io

I was trying out this setup with codesanbox.io but it throws an error. Do you have any ideas why this might be the case?

Thanks

P.S. the error is:

Invariant Violation
Target container is not a DOM element.
β–Ά 3 stack frames were collapsed.
evaluate
/src/index.js:6

  3 | 
  4 | const title = 'My Minimal React Webpack Babel Setup';
  5 | 
> 6 | ReactDOM.render(
  7 |   <div>{title}</div>,
  8 |   document.getElementById('app')
  9 | );

What about CSS, images and fonts ?

Hi @rwieruch,

Thank you for the content and the setup you've created but I see that this configuration even it's minimal needs some Webpack plugin to handle images, CSS, and fonts to make more useful.

Hot reloading and watching for changes doesn't work

So whenever I run npm start, it compiles but doesn't watch for any changes to any of the files. Even if I change something in index.js, it wouldn't update on the site (running at localhost:8080) even after reloading the page. I feel like the changes are not being watched for. Any way to fix this?

doesn't work

I did a clone and did "npm run start" and got this:
npm run start

[email protected] start C:\minimal-react-webpack-babel-setup
webpack-dev-server --config ./webpack.config.js --mode development

The CLI moved into a separate package: webpack-cli
Please install 'webpack-cli' in addition to webpack itself to use the CLI
-> When using npm: npm i -D webpack-cli
-> When using yarn: yarn add -D webpack-cli
module.js:549
throw err;
^

Error: Cannot find module 'webpack-cli/bin/config-yargs'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object. (C:\Users\Ilene\AppData\Roaming\npm\node_modules\webpack-dev-server\bin\webpack-dev-server.js:84:1)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: webpack-dev-server --config ./webpack.config.js --mode development
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:

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.