Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

ngc fails when using Telerik platform's everlive-sdk #80

@abhayastudios

Description

@abhayastudios

The ngc compilation fails when using the everlive-sdk plugin (see this forum post):

ERROR in ../~/node-localstorage/LocalStorage.js
Module not found: Error: Can't resolve 'fs' in '/Users/joni/projects/testjoni/node_modules/node-localstorage'
 @ ../~/node-localstorage/LocalStorage.js 9:7-20
 @ ../~/everlive-sdk/dist/everlive.all.js
 @ ./providers/backend.ts
 @ ./app.module.ngfactory.ts
 @ ./main.aot.ts

According to Georgi who helped me out there the webpack.common.js should disable the fs shim that is conflicting with NS:

node: {
        //Disable node shims that conflict with NativeScript
        "http": false,
        "timers": false,
        "setImmediate": false,
        "fs": "empty",
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions