NativeScript / NativeScript/nativescript-cli
Error in inject SASS in bundle
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 204
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 8
Description
Error in inject SASS in bundle
The package has the following dependencies:
"devDependencies": {
"nativescript-dev-webpack": "~ 1.5.1",
"node-sass": "^ 4.13.1",
"sass-loader": "^ 8.0.2",
"typescript": "~ 3.5.3",
"webpack": "^ 4.42.1"
},
However, when I run the tns run an error occurs in the bundle.js, saying: ERROR SyntaxError: Unexpected identifier 'defined undefined undefi'.
The bundle.js file contains the following:

WebPack SCSS Configuration:
{
test: /.scss$/,
use: [
"nativescript-dev-webpack/css2json-loader",
"sass-loader"
]
},
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the failure with tns run using the listed nativescript-dev-webpack, node-sass, sass-loader, TypeScript, and webpack dependencies. Inspect bundle.js and the shown WebPack SCSS configuration, then verify that SCSS injection no longer produces the reported Unexpected identifier error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, sass, typescript, webpack
- Domain
- build-system, cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100