Skip to content

./src/main.ts - Error: Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/index.js): Error: Transform failed with 1 error: src/app/@theme/layouts/two-columns/two-columns.layout.scss:17:100: ERROR: Unterminated string token 1 error: ERROR: Unterminated string token #24765

Description

@enurberk

Command

update

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

Angular 8.0.2

Description

I update my angular project 8.0.2 to 15.1.5 using this link
I followed Angular Update Guide instruction and i faced up with this errors.

./src/main.ts - Error: Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/index.js):
Error: Transform failed with 1 error:
C:/Users/elifn/OneDrive/Masaüstü/kardemir-angular_17.02.2023/src/app/@theme/layouts/two-columns/two-columns.layout.scss:17:100: ERROR: Unterminated string token
./src/polyfills.ts - Error: Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/index.js):
Error: Transform failed with 1 error:
C:/Users/elifn/OneDrive/Masaüstü/kardemir-angular_17.02.2023/src/app/@theme/layouts/two-columns/two-columns.layout.scss:17:100: ERROR: Unterminated string token
./src/app/@theme/styles/styles.scss - Error: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
SassError: Can't find stylesheet to import.
@import '~@nebular/theme/styles/theming';
src\app\@theme\styles\themes.scss 2:9 @import
src\app\@theme\styles\styles.scss 6:9 root stylesheet
./src/app/@theme/styles/styles.scss?ngGlobalStyle - Error: Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
HookWebpackError: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
SassError: Can't find stylesheet to import.
@import '~@nebular/theme/styles/theming';
src\app\@theme\styles\themes.scss 2:9 @import
src\app\@theme\styles\styles.scss 6:9 root stylesheet

My Angular Versions
a

Minimal Reproduction

./src/main.ts ->
/**

  • @license
  • Copyright Akveo. All Rights Reserved.
  • Licensed under the MIT License. See License.txt in the project root for license information.
    */
    import { enableProdMode } from '@angular/core';
    import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';

import { AppModule } from './app/app.module';
import { environment } from './environments/environment';

if (environment.production) {
enableProdMode();
}

platformBrowserDynamic().bootstrapModule(AppModule)
.catch(err => console.error(err));

Exception or Error

/node_modules/@ngtools/webpack/src/ivy/index.js ->
"use strict";
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.AngularWebpackLoaderPath = exports.AngularWebpackPlugin = exports.default = void 0;
var loader_1 = require("./loader");
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return loader_1.angularWebpackLoader; } });
var plugin_1 = require("./plugin");
Object.defineProperty(exports, "AngularWebpackPlugin", { enumerable: true, get: function () { return plugin_1.AngularWebpackPlugin; } });
exports.AngularWebpackLoaderPath = __filename;

Your Environment

src/app/@theme/layouts/two-columns/two-columns.layout.scss->
@import '../../styles/themes';
@import '~bootstrap/scss/mixins/breakpoints';
@import '~@nebular/theme/styles/global/breakpoints';
@include nb-install-component() {
.menu-sidebar::ng-deep.scrollable {
padding-top: nb-theme(layout-padding-top);
}
}

Anything else relevant?

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions