Title: Module not found when using SASS with Webpack · Issue #90 · NativeScript/nativescript-dev-sass · GitHub
Open Graph Title: Module not found when using SASS with Webpack · Issue #90 · NativeScript/nativescript-dev-sass
X Title: Module not found when using SASS with Webpack · Issue #90 · NativeScript/nativescript-dev-sass
Description: Problem Description When using SASS in combination with webpack, the build fails because webpack won't find the compiled CSS files. The error will be something like the following: ERROR in ./item/item-detail.component.ts Module not found...
Open Graph Description: Problem Description When using SASS in combination with webpack, the build fails because webpack won't find the compiled CSS files. The error will be something like the following: ERROR in ./item/i...
X Description: Problem Description When using SASS in combination with webpack, the build fails because webpack won't find the compiled CSS files. The error will be something like the following: ERROR in ./it...
Opengraph URL: https://github.com/NativeScript/nativescript-dev-sass/issues/90
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Module not found when using SASS with Webpack ","articleBody":"### Problem Description\r\n\r\nWhen using SASS in combination with webpack, the build fails because webpack won't find the compiled CSS files. The error will be something like the following:\r\n\r\n```\r\nERROR in ./item/item-detail.component.ts\r\nModule not found: Error: Can't resolve './item-detail.css' in 'app/item'\r\n @ ./item/item-detail.component.ts 17:21-49\r\n @ ./app.module.ts\r\n @ ./main.ts\r\n```\r\n\r\nWhen building the app with webpack using e.g. `tns build ios --bundle` the SASS compilation is skipped (for whatever reason) - so I guess that's the reason behind the problem. \r\n\r\n### Which platform(s) does your issue occur on?\r\nSince it's a problem during the build, I guess this is secondary but: \r\n- Happens on both platforms \r\n- Happens for emulator or device build.\r\n\r\n### Version numbers that the issue occurs with:\r\n\r\n- CLI: 4.2.2 \r\n- Cross-platform modules: 4.2.0 \r\n- Runtime(s):\r\n - iOS: 4.2.0\r\n - Android: 4.2.0\r\n - Plugin(s): 1.6.0\r\n\r\n### Recreate the issue \r\nTechnically it's quite simple. When you create a new NativeScript project and setup webpack and SASS - the app won't (most likely) build. \r\n\r\nI have prepared a sample project to easily reproduce the problem, you can find that here: \r\nhttps://github.com/mikaelkalt/nativescript-angular-sass-webpack-sample\r\n \r\nThe following issue might be related to that one: \r\nhttps://github.com/NativeScript/nativescript-dev-webpack/issues/473\r\n","author":{"url":"https://github.com/mikaelkalt","@type":"Person","name":"mikaelkalt"},"datePublished":"2018-09-17T15:39:13Z","url":"https://github.com/NativeScript/nativescript-dev-sass/issues/90"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0876b30a-5568-79c7-77ad-5a4acd8f022b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DFD6:34CAB:1B87ABD:231E00C:6B015A93 |
| html-safe-nonce | ffbfaf0fda02ecb90b59a131d5b224ea3e3ad8c6689d8711e1d4b612faf1b25e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERkQ2OjM0Q0FCOjFCODdBQkQ6MjMxRTAwQzo2QjAxNUE5MyIsInZpc2l0b3JfaWQiOiI4MzcxODIyMDE5NzY2OTk5Njk5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 4272c629a202b7f3a8be9410c77172ed7321018688af9a436b814b53ca8795c8 |
| hovercard-subject-tag | issue:360927866 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NativeScript/nativescript-dev-sass/90/issue_layout |
| twitter:image | https://opengraph.githubassets.com/aa467846c2c62db67df3013c23084e438fa1c3c3ba5e7a6dfee4939851b23258/NativeScript/nativescript-dev-sass/issues/90 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/aa467846c2c62db67df3013c23084e438fa1c3c3ba5e7a6dfee4939851b23258/NativeScript/nativescript-dev-sass/issues/90 |
| og:image:alt | Problem Description When using SASS in combination with webpack, the build fails because webpack won't find the compiled CSS files. The error will be something like the following: ERROR in ./item/i... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mikaelkalt |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/NativeScript/nativescript-dev-sass git https://github.com/NativeScript/nativescript-dev-sass.git |
| octolytics-dimension-user_id | 7392261 |
| octolytics-dimension-user_login | NativeScript |
| octolytics-dimension-repository_id | 53878179 |
| octolytics-dimension-repository_nwo | NativeScript/nativescript-dev-sass |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 53878179 |
| octolytics-dimension-repository_network_root_nwo | NativeScript/nativescript-dev-sass |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width