Skip to content

Fix native modules issue in Release builds for React+TS version #531

@OmkarPh

Description

@OmkarPh

Dev mode - Everything works as expected end to end
Release build -

  • Build process works without error:
    Build steps:
    • Install dependencies: npm install
    • Run package script: npm run package
    • App is generated in out/ in the format supported by platform it is built on

image

  • Running the generated app works fine:
    image

  • Err occurs, after selecting a JSON file for import, i.e. when sqlite3 is being required by Sequelize.
    Essentially, sqlite3 isn't being made available in the release build, since it is a native module, it needs some particular config changes in webpack so that it can be available in the release build too.
    image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions