Repository navigation
Closed
Description
Command
build
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
No response
Description
I tried build my angular 15 application with esbuild, but i get error`s
src/app/static/utils/dateTimeUtils.ts:9:20:
9 │ const localDate = dayjs(utcDate).local().format(format);
╵ ~~~~~
Consider changing "dayjs" to a default import instead:
src/app/static/utils/dateTimeUtils.ts:2:7:
2 │ import * as dayjs from 'dayjs';
│ ~~~~~~~~~~
╵ dayjs
X [ERROR] [plugin angular-sass] Can't find stylesheet to import.
╷
1 │ @import 'src/assets/styles/mixins';
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
src\app\shared\components\form-controls\abstract\form-input-base\form-input-base.component.scss 1:9 root stylesheet
X [ERROR] [plugin angular-sass] Can't find stylesheet to import.
╷
1 │ @import "src/app/shared/components/form-controls/abstract/form-input-base/form-input-base.component";
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
src\app\shared\components\workplace-wrapper\components\workplace-wrapper-side-section\workplace-instruments\components\workplace-instruments-modal\workplace-instruments-modal.component.scss 1:9 root stylesheet
X [ERROR] [plugin angular-sass] Can't find stylesheet to import.
╷
1 │ @import "src/assets/styles/variables";
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
src\app\shared\components\workplace-wrapper\components\workstation-wrapper-order-section\components\workstation-pipes-counter\workstation-pipes-counter.component.scss 1:9 root stylesheet
X [ERROR] [plugin angular-sass] Can't find stylesheet to import.
╷
1 │ @import "src/assets/styles/mixins";
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
src\app\shared\components\workplace-wrapper\components\workstation-wrapper-order-section\workstation-wrapper-order-section.component.scss 1:9 root stylesheet
X [ERROR] [plugin angular-sass] Can't find stylesheet to import.
╷
1 │ @import "src/assets/styles/variables";
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
src\app\shared\components\panel\panel.component.scss 1:9 root stylesheet
X [ERROR] [plugin angular-sass] Can't find stylesheet to import.
╷
1 │ @import 'src/assets/styles/variables';
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
src\app\shared\components\workplace-wrapper\components\workplace-wrapper-side-section\workplace-wrapper-side-section.component.scss 1:9 root stylesheet
X [ERROR] [plugin angular-sass] Can't find stylesheet to import.
╷
1 │ @import 'src/assets/styles/mixins';
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
src\app\shared\components\package-info\package-info.component.scss 1:9 root stylesheet
X [ERROR] [plugin angular-sass] Can't find stylesheet to import.
╷
1 │ @import "/src/assets/styles/mixins";
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
src\app\pages\workplaces-main\pages\sleeve\components\screw-up-arm\screw-up-arm.component.scss 1:9 root stylesheet
X [ERROR] [plugin angular-sass] Can't find stylesheet to import.
╷
1 │ @import 'src/assets/styles/mixins';
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
src\app\shared\components\package-info\package-modal\package-modal.component.scss 1:9 root stylesheet
X [ERROR] [plugin angular-sass] Can't find stylesheet to import.
╷
1 │ @import 'src/assets/styles/variables';
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
src\app\shared\components\workplace-wrapper\components\workplace-wrapper-side-section\workplace-wrapper-side-section.component.scss 1:9 @import
src\app\shared\components\workplace-wrapper\components\workplace-wrapper-side-section\workplace-instruments\workplace-instruments.component.scss 1:9 root stylesheet
X [ERROR] [plugin angular-sass] Can't find stylesheet to import.
╷
1 │ @import "src/assets/styles/variables";
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
src\app\api\components\nav-menu\nav-menu.component.scss 1:9 root stylesheet
X [ERROR] [plugin angular-sass] Can't find stylesheet to import.
╷
1 │ @import 'src/assets/styles/mixins';
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
src\app\pages\workplaces-main\pages\sleeve\components\screw-up-arm\components\screw-up-info\screw-up-info.component.scss 1:9 root stylesheet
Minimal Reproduction
ng build
Exception or Error
No response
Your Environment
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1500.2
@angular-devkit/build-angular 15.0.2
@angular-devkit/core 15.0.2
@angular-devkit/schematics 15.0.2
@schematics/angular 15.0.2
rxjs 7.5.7
typescript 4.8.4
Anything else relevant?
No response
Metadata
Metadata
Assignees
Labels
No labels
Activity
[-]esbuild not building[/-][+]Angular 15 - esbuild not building[/+]clydin commentedon Dec 1, 2022
Thank you for trying out the new esbuild-based builder.
The Sass imports are failing due to their reliance on a Webpack specific behavior that attempts to resolve relative stylesheet imports from the workspace root. While this behavior currently works with Webpack, it is also not guaranteed to work in the future.
However, if this type of Sass stylesheet import is useful for the project, it can be opted in by adding an style preprocessor include path entry for the workspace root to the build options for the project:
This will also work for the default Webpack based builder.
masterworgen commentedon Dec 1, 2022
@clydin Thanks you!
Its work for me.
I get boost build project 65500ms to 16.824 sec!
webpack:
esbuild:
clydin commentedon Dec 1, 2022
Great to hear.
If you encounter any other problems with the new builder, please let use know by opening a new issue.
angular-automatic-lock-bot commentedon Jan 2, 2023
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.