Hi guys. Have you tested the new dart library with...
# suitecommerce
b
Hi guys. Have you tested the new dart library with the new 2023.1 dev tools? I download them and when i run:
gulp extension:fetch
I get this error:
Copy code
UnhandledPromiseRejectionWarning: Error: Missing parameters --key or --secret. Check your .env file or add those parameters to the gulp task
I started a support case because it seems that it is an issue with the new dev tools bundle 500777. Thank you!!!
e
You need to provide your Token Key and Secret to allow your computer to connect to the NetSuite environment.
if you have been using a previous version of the extension dev tools successfully, you can copy the .env file from that folder into your 2023.1 tools folder and should be ok
🙌 1
b
Hi! Ok will try that! Thank you so much!!!
I have used the 2022.2.0 dev tools but i do not see the .env file.
Let me take a look at the error log again.
e
because its .env file your OS might note show those types files by default. You will need to use either Terminal or PowerShell to list the folder contents to see OR change the view options to show hidden files
🙌 1
b
It'd be inside the gulp folder, right? I can see the hidden files but not the .env one.
e
no one up. same location as gulpfile.js, package.json, payload.json etc
b
It is not there. 😕
I just copied it again from original dev tools from bundle.
I see it.
Ran npm install all finished ok. But still having issues with the /env i can't access it it is an exec file.
e
you should be able to open it text edit. Looks like you are on OSx so Right click on the file then Open With -> Other .... Change to All Applications Then select "Text Edit"
b
Got it!
So now i need to create a new integration.
And copy the new token values into the file 🙂
So this did not happen with 2022.2
I guess 2023.1 did 🙂
Well now i am getting a different one:
Copy code
UnhandledPromiseRejectionWarning: Error: Invalid login attempt.
    at OAuth1._baseStep
Hi Eric, question, did you get errors with the new dart library pointing to the tmp folder? I fixed all the errors in all the files inside the worspace folder but i still can't deploy the theme to my sandbox site. I get this error:
Copy code
'compile-sass' errored after 795 ms
[12:41:54] Error in plugin "gulp-sass"
Message:
    tmp/AFG_2022_2_Theme/Modules/twitter-bootstrap-sass/3.4.1/assets/stylesheets/bootstrap/_variables.scss
Error: argument `$number` of `floor($number)` must be a number
        on line 368 of tmp/AFG_2022_2_Theme/Modules/twitter-bootstrap-sass/3.4.1/assets/stylesheets/bootstrap/_variables.scss, in function `floor`
        from line 368 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
>> $navbar-padding-horizontal:        floor(calc(#{$grid-gutter-width} / 2)) !d
   -----------------------------------^

Details:
    status: 1
    file: /Users/berenice/Documents/github/2024_1/Dev Tools 23.2.1/afg-22-sca-theme-dev/tmp/AFG_2022_2_Theme/Modules/twitter-bootstrap-sass/3.4.1/assets/stylesheets/bootstrap/_variables.scss
    line: 368
    column: 36
    formatted: Error: argument `$number` of `floor($number)` must be a number
        on line 368 of tmp/AFG_2022_2_Theme/Modules/twitter-bootstrap-sass/3.4.1/assets/stylesheets/bootstrap/_variables.scss, in function `floor`
        from line 368 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
>> $navbar-padding-horizontal:        floor(calc(#{$grid-gutter-width} / 2)) !d
   -----------------------------------^

    messageFormatted: tmp/AFG_2022_2_Theme/Modules/twitter-bootstrap-sass/3.4.1/assets/stylesheets/bootstrap/_variables.scss
Error: argument `$number` of `floor($number)` must be a number
        on line 368 of tmp/AFG_2022_2_Theme/Modules/twitter-bootstrap-sass/3.4.1/assets/stylesheets/bootstrap/_variables.scss, in function `floor`
        from line 368 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
>> $navbar-padding-horizontal:        floor(calc(#{$grid-gutter-width} / 2)) !d
   -----------------------------------^

    messageOriginal: argument `$number` of `floor($number)` must be a number
    relativePath: tmp/AFG_2022_2_Theme/Modules/twitter-bootstrap-sass/3.4.1/assets/stylesheets/bootstrap/_variables.scss
    domainEmitter: [object Object]
    domainThrown: false
e
Yeah I had a lot of issue with the twitter-bootstrap-sass validating and passing the Dart tools. I ended up updating our themes copy of twitter-bootstrap with the one from the current BaseTheme. I do have a project on the books however to update our theme using the new more preferred way of theme customization with fallback option. This way you can use a base theme as the starting point and instead of neededing a copy of every module and template you only create customization overrides for the areas you need. Much more efficient in maintaining and updating going forward.
b
So how can I do that? I am afraid that if i remove that folder my theme will be messed up.
e
I basically did a copy & replace on the current base themes twitter-bootstrap and overwrote my custom theme and re ran locally to test the theme out.
🙌 1