GWilliams
02/08/2024, 10:09 AMSteve Goldberg
02/08/2024, 1:11 PMGWilliams
02/08/2024, 1:18 PMSteve Goldberg
02/08/2024, 1:21 PMGWilliams
02/08/2024, 1:24 PM{
"type": "error.SuiteScriptError",
"name": "225949",
"message": "Compiler was unable to compile the given input file.",
"id": null,
"stack": [
"createError(N/error)"
],
"cause": {
"message": "Compiler was unable to compile the given input file.",
"stack": [
"createError(N/error)",
"map(/SuiteBundles/Bundle 500777/ExtensionMechanism.Server/CompilersMapReduce/SassCompilerMapReduce.js:160)"
],
"name": "225949",
"data": {
"response": null,
"notifications": [
{
"message": "Compilation error occured.",
"status": "1",
"json": "compound selectors may no longer be extended.\nConsider `@extend .button-secondary, :hover` instead.\nSee <https://sass-lang.com/d/extend-compound> for details.\n",
"file": "filecabinet:/SuiteScripts/Deploy_Extensions/Maddocks/Maddocks@1.0.7/Modules/BaseSassStyles/Sass/atoms/_buttons.scss 325:11 @import\nfilecabinet:/SuiteScripts/Deploy_Extensions/Maddocks/Maddocks@1.0.7/Modules/BaseSassStyles/Sass/_main-atoms.scss 27:9 @import\nfilecabinet:/SuiteScripts/Deploy_Extensions/Maddocks/Maddocks@1.0.7/Modules/Checkout/checkout.scss 49:9 @import\nfilecabinet:/Web%20Site%20Hosting%20Files/Live%20Hosting%20Files/SSP%20Applications/NetSuite%20Inc.%20-%20SCA%202022.1.0/Development/extensions/meta_checkout_34.scss 33:9 root stylesheet\n",
"src": "filecabinet:/SuiteScripts/Deploy_Extensions/Maddocks/Maddocks@1.0.7/Modules/BaseSassStyles/Sass/atoms/_buttons.scss 325:11 @import\nfilecabinet:/SuiteScripts/Deploy_Extensions/Maddocks/Maddocks@1.0.7/Modules/BaseSassStyles/Sass/_main-atoms.scss 27:9 @import\nfilecabinet:/SuiteScripts/Deploy_Extensions/Maddocks/Maddocks@1.0.7/Modules/Checkout/checkout.scss 49:9 @import\nfilecabinet:/Web%20Site%20Hosting%20Files/Live%20Hosting%20Files/SSP%20Applications/NetSuite%20Inc.%20-%20SCA%202022.1.0/Development/extensions/meta_checkout_34.scss 33:9 root stylesheet\n",
"detail": "Error: compound selectors may no longer be extended.\nConsider `@extend .button-secondary, :hover` instead.\nSee <https://sass-lang.com/d/extend-compound> for details.\n\n ╷\n325 │ @extend .button-secondary:hover;\n │ ^^^^^^^^^^^^^^^^^^^^^^^\n ╵\n filecabinet:/SuiteScripts/Deploy_Extensions/Maddocks/Maddocks@1.0.7/Modules/BaseSassStyles/Sass/atoms/_buttons.scss 325:11 @import\n filecabinet:/SuiteScripts/Deploy_Extensions/Maddocks/Maddocks@1.0.7/Modules/BaseSassStyles/Sass/_main-atoms.scss 27:9 @import\n filecabinet:/SuiteScripts/Deploy_Extensions/Maddocks/Maddocks@1.0.7/Modules/Checkout/checkout.scss 49:9 @import\n filecabinet:/Web%20Site%20Hosting%20Files/Live%20Hosting%20Files/SSP%20Applications/NetSuite%20Inc.%20-%20SCA%202022.1.0/Development/extensions/meta_checkout_34.scss 33:9 root stylesheet",
"text": "compound selectors may no longer be extended.\nConsider `@extend .button-secondary, :hover` instead.\nSee <https://sass-lang.com/d/extend-compound> for details.\n",
"severity": {
"label": "ERROR",
"value": 3
}
}
]
}
},
"notifyOff": false,
"userFacing": true
}
Steve Goldberg
02/08/2024, 1:25 PMWe are using a custom theme based off 2020 SuiteCommerce Base Theme. Is there a patch we can implement to make it compatible?Well, no. As it stands it probably won’t be compatible but it depends on your customisations. There’s no patch because it is entirely dependent on the syntax in your theme. The base theme was updated, so that would serve as a new starting point. Otherwise you will need to include the
--dart
parameter after your deploy, eg gulp theme:deploy --dart
Steve Goldberg
02/08/2024, 1:25 PMcompound selectors may no longer be extended.\nConsider `@extend .button-secondary, :hover` instead.\nSee <https://sass-lang.com/d/extend-compound> for details.
This is the main problem. Your problem is not to do with the issue that your case has been assigned toSteve Goldberg
02/08/2024, 1:26 PMSteve Goldberg
02/08/2024, 1:29 PMGWilliams
02/08/2024, 1:34 PMGWilliams
02/08/2024, 2:36 PMGWilliams
02/08/2024, 2:36 PMshopping.js?t=1701251344155:1 Uncaught Error: View doesn't have a template
at n.compileTemplate (shopping.js?t=1701251344155:1:368703)
at n._render (shopping.js?t=1701251344155:1:369138)
at n.render (shopping.js?t=1701251344155:1:369839)
at n.render (shopping.js?t=1701251344155:1:568215)
at n.updateMenuItemsUI (shopping.js?t=1701251344155:1:569463)
at m.updateProductListMenu (shopping.js?t=1701251344155:1:617849)
at shopping.js?t=1701251344155:1:1119008
at r (shopping.js?t=1701251344155:1:45784)
at Object.fireWith [as resolveWith] (shopping.js?t=1701251344155:1:46552)
at s.<computed> [as resolve] (shopping.js?t=1701251344155:1:48450)
GWilliams
02/08/2024, 2:37 PMSteve Goldberg
02/08/2024, 2:48 PMat n.updateMenuItemsUI (shopping.js?t=17012513441551569463)
at m.updateProductListMenu (shopping.js?t=17012513441551617849)Are these names of views? If so, do they have a template declared and are those templates in the theme (including the manifest)?
GWilliams
02/08/2024, 3:12 PMSteve Goldberg
02/08/2024, 3:17 PMupdateMenuItemsUI
is a function in MenuTree.View, which uses menu_tree.tpl. You have that?GWilliams
02/08/2024, 3:18 PMSteve Goldberg
02/08/2024, 3:18 PMGWilliams
02/08/2024, 3:21 PMSteve Goldberg
02/08/2024, 3:43 PM_.compact(_.map(requirejs._defined, function (val, key) {if (val == undefined && key.indexOf('.tpl') !== -1) {return key}}))
GWilliams
02/08/2024, 3:46 PMSteve Goldberg
02/08/2024, 3:46 PMSteve Goldberg
02/08/2024, 3:46 PMSteve Goldberg
02/08/2024, 3:47 PMGWilliams
02/08/2024, 3:50 PMChris
02/27/2024, 10:22 PM--dart
was included in the gulp
output!!Berenice Domínguez
03/21/2024, 3:37 PMBerenice Domínguez
03/21/2024, 3:37 PMSteve Goldberg
03/21/2024, 3:38 PMBerenice Domínguez
03/21/2024, 3:39 PMBerenice Domínguez
03/21/2024, 3:40 PMBerenice Domínguez
03/21/2024, 3:40 PMBerenice Domínguez
03/21/2024, 3:55 PMBerenice Domínguez
03/21/2024, 4:39 PMError: argument `$number` of `floor($number)` must be a number
I updated all the files based on the error thrown when I ran gulp check-dart-sass but I keep seeing the errors thrown in the temp folder.GWilliams
03/21/2024, 4:47 PMBerenice Domínguez
03/21/2024, 4:48 PMGWilliams
03/21/2024, 4:54 PMGWilliams
03/21/2024, 4:57 PMBerenice Domínguez
03/21/2024, 4:57 PMBerenice Domínguez
03/21/2024, 4:58 PMBerenice Domínguez
03/25/2024, 2:11 PM[09:37:24] Starting 'pre-templates'...
[09:37:24] Starting 'sass-prepare'...
[09:37:24] Starting 'update-manifest'...
[09:37:24] 'update-manifest' errored after 22 ms
[09:37:24] /Users/berenice/Documents/github/2024_1/Dev Tools 23.2.1/afg-22-sca-theme-dev/gulp/extension-mechanism/update-manifest/update-manifest-resources.js:380
if(templatesArray?.length || Object.entries(templatesArray).length)
^
SyntaxError: Unexpected token '.'
at wrapSafe (internal/modules/cjs/loader.js:1047:16)
at Module._compile (internal/modules/cjs/loader.js:1097:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1153:10)
at Module.load (internal/modules/cjs/loader.js:977:32)
at Function.Module._load (internal/modules/cjs/loader.js:877:14)
at Module.require (internal/modules/cjs/loader.js:1019:19)
at require (internal/modules/cjs/helpers.js:77:18)
at Object.<anonymous> (/Users/berenice/Documents/github/2024_1/Dev Tools 23.2.1/afg-22-sca-theme-dev/gulp/extension-mechanism/update-manifest/update-manifest-task.js:9:23)
at Module._compile (internal/modules/cjs/loader.js:1133:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1153:10)
[09:37:24] 'update-validate' errored after 24 ms
[09:37:24] 'theme:deploy' errored after 2.4 s
Any ideas why? I am using node 12.16.3Steve Goldberg
03/25/2024, 2:15 PMBerenice Domínguez
03/25/2024, 2:16 PMBerenice Domínguez
03/25/2024, 3:48 PMformatted: Error: Invalid CSS after "...e: math": expected expression (e.g. 1px, bold), was ".ceil(($font-size-b"
on line 54 of tmp/AFG_2022_2_Theme/Modules/twitter-bootstrap-sass/3.4.1/assets/stylesheets/bootstrap/_variables.scss
from line 10 of tmp/AFG_2022_2_Theme/Modules/Shopping/shopping.scss
from line 1 of shopping.scss
>> $font-size-large: math.ceil(($font-size-base * 1.25)) !default; // ~
------------------------------^
Berenice Domínguez
03/25/2024, 3:49 PMSteve Goldberg
03/25/2024, 4:13 PMBerenice Domínguez
03/25/2024, 5:20 PM{
"type": "error.SuiteScriptError",
"name": "78825",
"message": "Compiler was unable to compile the given input file.",
"id": null,
"stack": [
"createError(N/error)"
],
"cause": {
"message": "Compiler was unable to compile the given input file.",
"stack": [
"createError(N/error)",
"map(/SuiteBundles/Bundle 500777/ExtensionMechanism.Server/CompilersMapReduce/SassCompilerMapReduce.js:165)"
],
"name": "78825",
"data": {
"response": null,
"notifications": [
{
"message": "Compilation error occured.",
"status": "1",
"json": "@use rules must be written before any other rules.",
"file": "filecabinet:/SuiteScripts/Deploy_Extensions/AFG/AFG_2022_2_Theme@1.1.0/Modules/twitter-bootstrap-sass/3.4.1/assets/stylesheets/bootstrap/_variables.scss 27:1 @import\nfilecabinet:/SuiteScripts/Deploy_Extensions/AFG/AFG_2022_2_Theme@1.1.0/Modules/Checkout/checkout.scss 27:9 @import\nfilecabinet:/Web%20Site%20Hosting%20Files/Live%20Hosting%20Files/SSP%20Applications/NetSuite%20Inc.%20-%20SCA%202022.2.0/Development/extensions/meta_checkout_2.scss 33:9 root stylesheet\n",
"src": "filecabinet:/SuiteScripts/Deploy_Extensions/AFG/AFG_2022_2_Theme@1.1.0/Modules/twitter-bootstrap-sass/3.4.1/assets/stylesheets/bootstrap/_variables.scss 27:1 @import\nfilecabinet:/SuiteScripts/Deploy_Extensions/AFG/AFG_2022_2_Theme@1.1.0/Modules/Checkout/checkout.scss 27:9 @import\nfilecabinet:/Web%20Site%20Hosting%20Files/Live%20Hosting%20Files/SSP%20Applications/NetSuite%20Inc.%20-%20SCA%202022.2.0/Development/extensions/meta_checkout_2.scss 33:9 root stylesheet\n",
"detail": "Error: @use rules must be written before any other rules.\n ╷\n27 │ @use 'sass:math';\n │ ^^^^^^^^^^^^^^^^\n ╵\n filecabinet:/SuiteScripts/Deploy_Extensions/AFG/AFG_2022_2_Theme@1.1.0/Modules/twitter-bootstrap-sass/3.4.1/assets/stylesheets/bootstrap/_variables.scss 27:1 @import\n filecabinet:/SuiteScripts/Deploy_Extensions/AFG/AFG_2022_2_Theme@1.1.0/Modules/Checkout/checkout.scss 27:9 @import\n filecabinet:/Web%20Site%20Hosting%20Files/Live%20Hosting%20Files/SSP%20Applications/NetSuite%20Inc.%20-%20SCA%202022.2.0/Development/extensions/meta_checkout_2.scss 33:9 root stylesheet",
"text": "@use rules must be written before any other rules.",
"severity": {
"label": "ERROR",
"value": 3
}
}
]
}
},
"notifyOff": false,
"userFacing": true
}
Steve Goldberg
03/25/2024, 5:29 PM"@use rules must be written before any other rules."
Berenice Domínguez
03/26/2024, 2:07 PM{
"type": "error.SuiteScriptError",
"name": "79749",
"message": "Compiler was unable to compile the given input file.",
"id": null,
"stack": [
"createError(N/error)"
],
"cause": {
"message": "Compiler was unable to compile the given input file.",
"stack": [
"createError(N/error)",
"map(/SuiteBundles/Bundle 500777/ExtensionMechanism.Server/CompilersMapReduce/SassCompilerMapReduce.js:165)"
],
"name": "79749",
"data": {
"response": null,
"notifications": []
}
},
"notifyOff": false,
"userFacing": true
}
Chris
03/28/2024, 3:00 PMView doesn't have a template
error again. I rolled back to 23.1.3 theme tools and the problem went away. I don't know the root cause.Berenice Domínguez
03/28/2024, 9:45 PMwbermudo
04/01/2024, 6:26 PM