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

Webpack failure #6

Open
skhye05 opened this issue Nov 22, 2017 · 13 comments
Open

Webpack failure #6

skhye05 opened this issue Nov 22, 2017 · 13 comments

Comments

@skhye05
Copy link

skhye05 commented Nov 22, 2017

I am running webpack command for android and I am getting this error

`ERROR in Unexpected value 'NgShadowModule in /node_modules/nativescript-ng-shadow/angular/ng-shadow.module.d.ts' imported by the module 'AppModule in app/app.module.ts'. Please add a @NgModule annotation.

ERROR in ./main.aot.ts
Module not found: Error: Can't resolve './app.module.ngfactory' in '...App\app'
@ ./main.aot.ts 5:29-62

@souly1
Copy link

souly1 commented Dec 12, 2017

any update on this?

@berardo
Copy link
Contributor

berardo commented Dec 18, 2017

There's a chance of problem with AOT.
Will look into it.
Mind sharing a small project with your scenario so I can reproduce it easily?

Thanks

@gabitoesmiapodo
Copy link

Same problem here.

@gabitoesmiapodo
Copy link

Nevermind, I modified node_modules/nativescript-ng-shadow/angular/ng-shadow.module.d.ts

and it works now.

import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';

@NgModule({
    imports: [],
    schemas: [
        NO_ERRORS_SCHEMA
    ]
})

export declare class NgShadowModule {
}

You will obviously lose these changes if you delete your node_modules folder, but it could be included in a next version, a pull request, or a fork.

@artberri
Copy link

@JoshDSommer
Copy link
Contributor

@berardo I've created a PR that should allow for AOT and Web Pack compatibility, please let me know if you have any problems #14

@erkanarslan
Copy link

This is still not solved.

@hugocostadev
Copy link

hugocostadev commented Mar 1, 2019

Still not solved ?
I think that this plugin is resulting a delay of navigation in Angular + NativeScript. After removing navigation become faster

@mchallenger88
Copy link

mchallenger88 commented Apr 8, 2019

I received this error on the release build of the app. I added the import suggested by @gabitoesmiapodo and the release build was successful. However, when running the app, the shadows have been stripped out of the UI.

@gabitoesmiapodo
Copy link

Well, my comment is from Dec 2017, so that code might be not working now.

@mchallenger88
Copy link

Okay. Thanks. ;)

@Pandishpan
Copy link

Any quick & dirty fix for this issue? 😄

@nemyagky
Copy link

nemyagky commented Jun 6, 2020

Subscribing to the guy above

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