Skip to content

Support for Node 10 #27

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
OnurGumus opened this issue May 25, 2018 · 8 comments
Closed

Support for Node 10 #27

OnurGumus opened this issue May 25, 2018 · 8 comments

Comments

@OnurGumus
Copy link

If you have Node 10.x build fails as below:

Error [email protected]: 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.
Running build failed.
Error:
System.Exception: 'C:\Program Files (x86)\Yarn\bin\yarn.cmd install --frozen-lockfile' failed
at Microsoft.FSharp.Core.PrintfModule.PrintFormatToStringThenFail@1379.Invoke(String message)
at FSI_0005.Build.run(String cmd, String args, String workingDir) in D:\Projects\SAFE-Dojo-master\build.fsx:line 28
at [email protected](Unit _arg2) in D:\Projects\SAFE-Dojo-master\build.fsx:line 37
at Fake.TargetHelper.runSingleTarget(TargetTemplate`1 target) in D:\code\fake\src\app\FakeLib\TargetHelper.fs:line 626

@isaacabraham
Copy link
Member

@theimowski does the template nowadays generate node-10.x compatible solutions?

@theimowski
Copy link

I haven't tested it with node 10. Looks like its Yarn <-> node compatibility issue

@WalternativE
Copy link
Contributor

The problem stems from the upath dependency which is pulled in transitively via the webpack dev server. It's rather easy to resolve: just delete the yarn lock-file, start a yarn install to generate a new lock-file and use the build.cmd to run your project. In theory everything should still work as the dependencies are already stated explicitly in the package.json file. I'm currently investigating this. Is a more recent version of the lock-file something I could offer as a PR when I'm done testing, @isaacabraham?

@isaacabraham
Copy link
Member

Sure, that would be great. As long as the dependencies are still backwards-compatible, that's great.

@WalternativE
Copy link
Contributor

As far as I can tell they still are - unfortunately I'm currently experiencing problems with node 8.x LTS on my machine - I'll set up a VM tomorrow and verify it with this setup.

@voronoipotato
Copy link

I did

yarn upgrade webpack

Seems to fix the problem.

enzymejs/enzyme#1637

@fergusmeiklejohn
Copy link

The build is still failing out the box
yarn upgrade fixes it

Perhaps we should add this as a first time build step in the readme? I worry this sort of thing puts newcomers off

@isaacabraham
Copy link
Member

Ouch. Sorry - Didn't realise this is fixed. I'll accept that PR now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants