Hi Everyone, I am working on building an extension...
# suitecommerce
k
Hi Everyone, I am working on building an extension for Aconcagua release 2 SCA using the SuiteCommerce Extension Management tools 2023.1.3. When I run gulp extension:local, I get the following error in the console when I make a change to the javascript files:
Copy code
[15:41:02] Finished 'localMessage' after 560 μs
[15:41:13] Starting 'watch-javascript'...
[15:41:13] Starting 'javascript'...
[15:41:13] Starting 'clean_js_tmp'...
[15:41:13] 'clean_js_tmp' errored after 2.5 ms
[15:41:13] TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of Buffer or URL. Received undefined
    at Object.mkdirSync (fs.js:1005:10)
    at clean_js_tmp (<local-dev-path>/ExtensionDevelopmentTools/gulp/tasks/javascript.js:30:6)
    at bound (domain.js:421:15)
    at runBound (domain.js:432:12)
    at asyncRunner (<local-dev-path>/ExtensionDevelopmentTools/node_modules/async-done/index.js:55:18)
    at processTicksAndRejections (internal/process/task_queues.js:77:11)
[15:41:13] 'javascript' errored after 3.34 ms
[15:41:13] 'watch-javascript' errored after 4.05 ms
Has anyone encountered this error before and know what’s causing it?
I solved the issue. I discovered the extension developer tools for SuiteCommerce Extension Management 2023.1.1 and 2023.1.3 had a defect in the “ExtensionDevelopmentTools/gulp/tasks/javascript.js” file. It throw the error when a change was made to the javascript. I don’t know if the issue was specific to developing extensions with SCA Aconcagua Release 2.
2
👌 1