nos / create-nos-dapp

CLI tool to generate a new nOS dApp
53 stars 35 forks source link

Failed to create new dapp with node version 10 #23

Open jaszhou opened 6 years ago

jaszhou commented 6 years ago

Error:

node:59289) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. error upath@1.0.4: The engine "node" is incompatible with this module. Expected version ">=4 <=9". error Found incompatible module info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. ✖ Something went wrong while copying the template or installing the dependencies Please check the console output and report it at 'https://github.com/nos/create-nos-dapp/issues'

Expected Behavior

It should also work with higher version of node.

Current Behavior

Failed with error message

Possible Solution

code update

Steps to Reproduce (for bugs)

Just try to run the command with node version 10.4.1

Context

Not able to ceate a new template

Your Environment

DalderupMaurice commented 6 years ago

This issue will be addressed in the next release as there's an update to a peer dependency which caused this error. reference.

DalderupMaurice commented 6 years ago

On a side note** As long as Parcel is not compatible with Babel 7 inside the react starter kit, we cannot resolve this issue :/

jeroenptrs commented 6 years ago

As long as Parcel is not compatible with Babel 7 inside the react starter kit, we cannot resolve this issue maybe it's time to move to Webpack 😞

mhuggins commented 6 years ago

Is there a way to make Parcel's HMR work without websocket?

DalderupMaurice commented 6 years ago

Don't think so And yes webpack seems better... Version 1.8.x and 1.9.x of Parcel have some serious issues as we both discovered :(

puncleV commented 6 years ago

i can add vuejs or maybe react webpack versions of templates.

DalderupMaurice commented 6 years ago

It's eventually not an issue within parcel :) @punkkk it was something else, requiring upath (forgot which package it was, thought It was something in the dependencies of our CLI tool itself) Also, we've tried webpack projects and the issue with HMR/websockets is on electron's side. Switching from parcel to Webpack won't make a difference unfortunately :(

jeroenptrs commented 5 years ago

Upath is fixed for node 10 resolution. The CLI has been updated, once the React package has been updated I'll push a new version. There's some changes coming soon that I'm gonna push with it (Parcel built-in renderer)