Coder Social home page Coder Social logo

yamafaktory / buble-react-rollup-starter Goto Github PK

View Code? Open in Web Editor NEW
73.0 73.0 7.0 240 KB

A simple starter project to build cool React applications with Bublé and Rollup.

License: MIT License

JavaScript 73.58% HTML 26.42%
boilerplate buble react rollup

buble-react-rollup-starter's Introduction

Hello folks 👋

I'm Davy (he/him), a senior software engineer | hacker | maker | thinker.

These days I'm mostly doing #Rustlang 🦀 and #TypeScript 🛠️.

I ❤️ to learn on a daily basis, to face new challenges and to contribute to open-source. Github is a playground for my experiments.

Enough about me! You can find me on Mastodon and on Linkedin.

buble-react-rollup-starter's People

Contributors

bengesoff avatar geewizwow avatar greenkeeper[bot] avatar konsumer avatar yamafaktory 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

buble-react-rollup-starter's Issues

A module cannot import itself

Steps to reproduce

  • clone this repo
  • run npm install
  • run npm run

Npm exits with code 1, output:

λ npm start

[email protected] start C:\Users\John\Documents\Repos\buble-react-rollup-starter
npm run build:dev && npm-run-all --parallel watch browse

[email protected] prebuild:dev C:\Users\John\Documents\Repos\buble-react-rollup-starter
npm run std --silent

[email protected] build:dev C:\Users\John\Documents\Repos\buble-react-rollup-starter
rollup -c config/dev.js

A module cannot import itself (C:\Users\John\Documents\Repos\buble-react-rollup-starter\node_modules\rollup-plugin-node-globals\src\global.js)
Error: A module cannot import itself (C:\Users\John\Documents\Repos\buble-react-rollup-starter\node_modules\rollup-plugin-node-globals\src\global.js)
at C:\Users\John\Documents\Repos\buble-react-rollup-starter\node_modules\rollup\src\Bundle.js:265:14
Type rollup --help for help, or visit https://github.com/rollup/rollup/wiki

npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Users\John\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "run" "build:dev"
npm ERR! node v6.3.0
npm ERR! npm v3.10.5
npm ERR! code ELIFECYCLE
npm ERR! [email protected] build:dev: rollup -c config/dev.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build:dev script 'rollup -c config/dev.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the buble-react-rollup-starter package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! rollup -c config/dev.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs buble-react-rollup-starter
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls buble-react-rollup-starter
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\John\Documents\Repos\buble-react-rollup-starter\npm-debug.log

npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Users\John\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "start"
npm ERR! node v6.3.0
npm ERR! npm v3.10.5
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: npm run build:dev && npm-run-all --parallel watch browse
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script 'npm run build:dev && npm-run-all --parallel watch browse'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the buble-react-rollup-starter package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm run build:dev && npm-run-all --parallel watch browse
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs buble-react-rollup-starter
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls buble-react-rollup-starter
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\John\Documents\Repos\buble-react-rollup-starter\npm-debug.log

Version 10 of node.js has been released

Version 10 of Node.js (code name Dubnium) has been released! 🎊

To see what happens to your code in Node.js 10, Greenkeeper has created a branch with the following changes:

  • Added the new Node.js version to your .travis.yml
  • The new Node.js version is in-range for the engines in 1 of your package.json files, so that was left alone

If you’re interested in upgrading this repo to Node.js 10, you can open a PR with these changes. Please note that this issue is just intended as a friendly reminder and the PR as a possible starting point for getting your code running on Node.js 10.

More information on this issue

Greenkeeper has checked the engines key in any package.json file, the .nvmrc file, and the .travis.yml file, if present.

  • engines was only updated if it defined a single version, not a range.
  • .nvmrc was updated to Node.js 10
  • .travis.yml was only changed if there was a root-level node_js that didn’t already include Node.js 10, such as node or lts/*. In this case, the new version was appended to the list. We didn’t touch job or matrix configurations because these tend to be quite specific and complex, and it’s difficult to infer what the intentions were.

For many simpler .travis.yml configurations, this PR should suffice as-is, but depending on what you’re doing it may require additional work or may not be applicable at all. We’re also aware that you may have good reasons to not update to Node.js 10, which is why this was sent as an issue and not a pull request. Feel free to delete it without comment, I’m a humble robot and won’t feel rejected 🤖


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 🌴

prop-types Error

Hi,
This is a great example of react with rollup.

When I am trying to import "prop-types" it shows me the following error

rollup v0.56.5
bundles src/index.js → build/app.js...
(!) Missing exports
https://github.com/rollup/rollup/wiki/Troubleshooting#name-is-not-exported-by-module
commonjs-proxy:/Volumes/MacintoshHD/Node/buble-react-rollup-starter/node_modules/react-is/index.js
default is not exported by node_modules/react-is/index.js
1: import * as reactIs from "/Volumes/MacintoshHD/Node/buble-react-rollup-starter/node_modules/react-is/index.js"; export default ( reactIs && reactIs['default'] ) || reactIs;

index.js

import React from 'react'
import ReactDOM from 'react-dom'
import { DummyComponent } from './components/dummy-component.jsx'
import PropTypes from 'prop-types'

DummyComponent.propTypes = {
    name: PropTypes.string.isRequired
};

// Define the root element.
const root = document.querySelector('main')

ReactDOM.render(<DummyComponent />, root)

Any idea how to resolve?

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.