Skip to content
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

fable 2.x #64

Open
forki opened this issue Feb 11, 2019 · 6 comments
Open

fable 2.x #64

forki opened this issue Feb 11, 2019 · 6 comments

Comments

@forki
Copy link
Member

forki commented Feb 11, 2019

I'm trying to update to fable 2.x but this üproject doesn't use webpack - so I can't copy @MangelMaxime's and @alfonsogarciacaro's work from SAFE-Stack/SAFE-BookStore#378

any help appreciated

@MangelMaxime
Copy link

I think you first need to update fable-react-native for Fable 2 supports.

@MangelMaxime
Copy link

@forki fable-splitter is compatible with Fable 2 so I don't think you need to change it as we did for the webpack config when switching from Fable 1 to Fable 2.

For example, for a node cli apps this config is enough.

const path = require("path");

module.exports = {
    entry: path.join(__dirname, "./Docs.fsproj"),
    outDir: path.join(__dirname, "./dist"),
    babel: {
        plugins: ["@babel/plugin-transform-modules-commonjs"],
    }
};

As you can, see it's almost empty.

First, I would try to update all the npm packages to their latest version or at least thus related to Fable compilation. You will also need to add fable-compiler (related to Fable 2.1 release).

@forki
Copy link
Member Author

forki commented Feb 20, 2019

do we continue to use dotnet-fable nuget package? Probably not, right?

@forki
Copy link
Member Author

forki commented Feb 20, 2019

do I use some yarn command?

WIP at #66

@MangelMaxime
Copy link

dotnet-fable has been removed since Fable 2.1

The replacement is to use fable-compiler from npm.
To set up Fable 2.1:

  • run yarn upgrade fable-splitter@latest fable-compiler@latest
  • remove dotnet-fable from paket.dependencies and paket.reference

@forki
Copy link
Member Author

forki commented Feb 20, 2019

yes I have fable-compiler installed. but how to start it!?

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

2 participants