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

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

Closed
abhayastudios opened this issue Feb 23, 2017 · 1 comment
Closed

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

abhayastudios opened this issue Feb 23, 2017 · 1 comment

Comments

@abhayastudios
Copy link

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",
    }
@sis0k0
Copy link
Contributor

sis0k0 commented Feb 23, 2017

LGTM. Thanks!

sis0k0 added a commit that referenced this issue Feb 23, 2017
Clashes with `everlive-sdk` plugin.

Closes #80
sis0k0 added a commit that referenced this issue Feb 23, 2017
Clashes with `everlive-sdk` plugin.

Closes #80
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants