Open SmailHammour opened 3 years ago
Same behavior using platform specific css: HostResourceResolver error appears in console although the code compiles correctly
Any updates on this? Same issue here: Error: HostResourceResolver: could not resolve ./login.component.scss in context of...
This occurs in iOS only for me (ns run ios), the result is any styles in scss file above get ignored. On Android (ns run android) the styles are applied as expected. I am using platform specific templates: login.component.android.scss and login.component.ios.scss The filename in the error above is what I import inside styleUrls array in login.component.ts
Inline styling works fine for either platform
Package json:
{
"name": "@nativescript/template-tab-navigation-ng",
"main": "main.js",
"displayName": "Tabs",
"templateType": "App template",
"version": "7.0.6",
"description": "NativeScript Application",
"author": "NativeScript Team oss@nativescript.org",
"license": "SEE LICENSE IN
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 When using platform specific templates (template.component.android.html/template.component.ios.html) an error is thrown. The code compiles but I’m seeing this in the console.
To Reproduce Use platform specific templates
template.component.android.html
template.component.ios.html
Expected behavior Error should not be thrown.