NativeScript / NativeScript/nativescript-cli

Error in inject SASS in bundle

Open
#5,288 1 comment 1 reaction 0 assignees View on GitHub

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:
Captura de Tela 2020-03-26 às 20 52 42

WebPack SCSS Configuration:
{
test: /.scss$/,
use: [
"nativescript-dev-webpack/css2json-loader",
"sass-loader"
]
},

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.