NativeScript / nativescript-dev-webpack

A package to help with webpacking NativeScript apps.
Apache License 2.0
97 stars 49 forks source link

changes are applied with custom css but there is an error in console log #1079

Open miroslavaivanova opened 4 years ago

miroslavaivanova commented 4 years ago

Environment Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

Describe the bug Create a project and make css to be custom. When you run an app, you will see that it will crash.

To Reproduce

  1. tns create app --js
  2. rename app.css to new.css
  3. add application.setCssFileName("new.css"); in app.js
  4. tns run android
  5. app will run and if you make a change it will apply but you can see an error in a console log: JS: Error: Could not load CSS from app.css: Error: require’s first parameter should be string

Expected behavior works without error in console log