-
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
.nuget/packages/fable.elmish.browser/0.9.0/fable/prelude.fs" is not in the SourceMap #43
Comments
I can't reproduce it. Do you still have this error ? |
It works now. I just upgraded Debian though, so that might have done something. Thanks! |
I also updated the templates today so perhaps this helps too. Don't know Happy to it solve 😊 |
I believe I figured out the problem. In my original post, you'll see the repo was located on my local drive at When I follow the install/build instructions for yarn AND I'm in my However, when I'm in So there are two apparent ways to solve this:
I'm happy to submit a PR for this, but I don't know where to start. A quick search around the repo doesn't clear this up, and I've used base fable templates in |
Are the others fable templates you used using |
Just to let you know, today I was actually thinking about a similar issue and for Fable 2 I'm planning to copy the sources of referenced Fable libraries (as well as |
@alfonsogarciacaro Thanks that sounds like it would help 👍 @MangelMaxime Yes other templates I'm using successfully have
It doesn't seem like |
I really don't know... @alfonsogarciacaro Is it Fable or webpack who resolves the path of the files to parse ? |
The issue with the new fsproj format is it doesn't matter whether you let Paket download packages locally, MSBuild is going to always reference the assemblies in the Hopefully copying the content of the |
Thanks @alfonsogarciacaro for the explanations, so we will probably wait for Fable 2 and see if this solved the problems. |
@alfonsogarciacaro Thanks for those insights. What's weird here is that the simple template works but the fable-elmish template does not. This makes me think there is some kind of configuration change that could be made to |
@aolney TBH, I don't know 😕 Can you use the workaround for now until Fable 2 is ready? (hopefully in a few weeks) |
No problem, thanks to you and @MangelMaxime for everything you do |
I just ran into this issue trying to build SAFE-Chat project inside of a Docker Image https://hub.docker.com/r/dcurylo/paket/ with the following Dockerfile:
With the resulting error:
|
@dustinlacewell-wk is |
OK this indeed worked. |
This bit me again today 😜 |
Maybe |
Thanks for that suggestion - it doesn't seem to help, but it did lead me to something else! I think I've figured out how to reproduce and repair the problem (but not the underlying cause). Basically the problem seems to be created by passing in a hyphenated project name when using the template, e.g.
Compiling in VsCode with
because the I can "repair" the project by renaming all hypenated names and underscore names in all files to a variant with neither, e.g. The bug seems to possibly be a new variant of dotnet/templating#402 and not a bug in Elmish. |
Ah, yeah, it seems there's a note about that in the README but it's easy to miss. Quite annoying behavior of dotnet templates, they should fail instead of replacing characters silently :/ |
Agreed 👍 I saw that note in the README but thought just renaming the |
Oddly this template was working ~2 weeks ago, but now fails with this error. I've tried blowing away the .nuget directory, node_modules, npm cache, and downgrading node.
The text was updated successfully, but these errors were encountered: