-
Notifications
You must be signed in to change notification settings - Fork 21
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
Template generator bug: wrong name for fsproj file #35
Comments
I renamed the file and now I'm a bit further. ERROR in ./node_modules/css-loader!./node_modules/sass-loader/lib/loader.js!./sass/main.sass
Module build failed: Error: Cannot find module 'node-sass' Trying to fix the npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above. Is this perhaps the solution? |
Finally had to do an audit fix: found 182 vulnerabilities (176 low, 1 moderate, 4 high, 1 critical)
run `npm audit fix` to fix them, or `npm audit` for details
⋊> ~/r/f/elmish-react-app npm audit fix
...
fixed 166 of 182 vulnerabilities in 4667 scanned packages
2 package updates for 16 vulns involved breaking changes
(use `npm audit fix --force` to install breaking changes; |
Now when running the build: it works! $ dotnet fable npm-start
Fable (1.3.3) daemon started on port 61225
CWD: /Users/kristianmandrup/repos/fable-projects/elmish-react-app
npm run start
> [email protected] start /Users/kristianmandrup/repos/fable-projects/elmish-react-app
> webpack-dev-server
Bundling for development...
Project is running at http://localhost:8080/
webpack: Compiled successfully.` :) |
The naming problem was at the time a bug in the We tracked it on the https://github.com/elmish/templates repo in this issue: elmish/templates#7 According to the referenced issues it should be fixed but perhaps it's not. There isn't much we can do about support templates name with |
Fair enough. I'm just learning the ropes with this whole .NET, f#, fable, templates etc. |
@kerams I have included link in my previous answer.
And as the README serve as documentation in this particular case, this is why we adding |
Description
Please provide a succinct description of your issue.
Used the following commands to create fresh fable-elmish-react project on 25/1-2019 on a MacOSX
elmish_react_app.fsproj
file generated for project namedelmish-react-app
.Should have been named
elmish-react-app.fsproj
(I think)Expected and actual results
In my VS Code editor, it warns:
ENOENT: no such file or directory, open '/Users/kristianmandrup/repos/fable-projects/elmish-react-app/src/elmish_react_app.fsproj'
Turns out the file generate is called
elmish-react-app.fsproj
since I named the projectelmish-react-app
I also have aelmish-react-app.sln
in the root. Looks like a bug in the template generator.For a quick fix, is there some place I can reconfigure the project to point to the current
.fsproj
file or should I rename the file to match the expectation of current config?Related information elmish-react-app
Not sure where I can the version info for all this, but I assume I'm using all the latests as I'm starting from a fresh setup/install of my environment.
The text was updated successfully, but these errors were encountered: