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.

Cannot include styleUrls #36

@jet-lee-m

Description

@jet-lee-m

Hi,

I use nativescript-dev-webpack in a nativescript project with angular 2 support. Now I have the problem that I cannot build my simple project with "npm run start-ios-bundle" when I include styleUrls in a component.

@Component({ selector: "page-login", templateUrl: "login.html", styleUrls: ["login.css"] })

I get following error:

ERROR in ./main.aot.ts Module not found: Error: Can't resolve './app.module.ngfactory' in '/Users/marouane/Desktop/test-ios/app' @ ./main.aot.ts 2:0-60

So when I remove the styleUrls entry in my component all works fine. I think webpack cannot find my stylesheets (*.css). I tried a lot of variations, but I cannot compile.

Can you help me please... thx

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions