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):
CLI: 6.1.2
nativescript-dev-webpack: 1.2.1
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
tns create app --js
rename app.css to new.css
add application.setCssFileName("new.css"); in app.js
tns run android
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
Environment Provide version numbers for the following components (information can be retrieved by running
tns info
in your project folder or by inspecting thepackage.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
tns create app --js
app.css
tonew.css
application.setCssFileName("new.css");
inapp.js
tns run android
Error: Could not load CSS from app.css: Error: require’s first parameter should be string
Expected behavior works without error in console log