elmish / templates

Other
42 stars 21 forks source link

Discrepancy in naming (project name conflict when containing . and -) #7

Open et1975 opened 7 years ago

et1975 commented 7 years ago

Created a new project and webpack.config uses _ while the project name uses -:

~/sources/scaffold-elmsih                                                                                                                                                                                                     
▶ node node_modules/webpack/bin/webpack.js 
Bundling for development...
Hash: 3aea6d8a27453c0be041
Version: webpack 2.4.1
Time: 26ms

ERROR in Entry module not found: Error: Can't resolve '/Users/eugene.tolmachev/sources/scaffold-elmsih/scaffold_elmsih.fsproj' in '/Users/eugene.tolmachev/sources/scaffold-elmsih'
alfonsogarciacaro commented 7 years ago

Reference https://github.com/dotnet/templating/issues/588

Apparently it can be solved by adding a hyphen to sourceName in template.json, like fable-elmish-react-template.