bigcommerce / cornerstone

The BigCommerce Cornerstone theme
https://developer.bigcommerce.com/stencil-docs
286 stars 606 forks source link

Stencil Start Errors when running locally #2476

Closed joseph-vega12 closed 2 months ago

joseph-vega12 commented 2 months ago

Issue

I am in the process in migrating a stores old version of Cornerstone to latest version of Cornerstone v6.14.0. I have downloaded the latest version of Cornerstone onto my local machine, and following the Bigcommerce Documentation to get it locally started.

I am able to stencil start the project but with some errors, I need to get past these errors because some assets are not loading properly for example navigation icons and drop down for navigation is not working because of the errors.

Some guidance into the right direction would be appreciated, i also looked into the isModuleDeclaration has been deprecated, please migrate to isImportOrExportDeclaration error and apparently Babel on version 8 has deprecated it and is using isImportOrExportDeclaration I have looked into their migration docs but could not find a solution this use case I have also tried this closed issue but wanted to see if there was any new update on this because that issue has been closed and maybe there has been a new solution.

Errors

isModuleDeclaration has been deprecated, please migrate to isImportOrExportDeclaration at isModuleDeclaration (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/types/lib/validators/generated/index.js:2748:35) at PluginPass.Program (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/babel-plugin-lodash/lib/index.js:102:44) Webpack Bundle Analyzer saved report to /Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/assets/dist/report.html ERROR in ./assets/js/theme/account.js Module build failed (from ./node_modules/babel-loader/lib/index.js): TypeError: /Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/assets/js/theme/account.js: Cannot read properties of undefined (reading 'has') at resolvePath (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/babel-plugin-lodash/lib/importModule.js:22:24) at importModule (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/babel-plugin-lodash/lib/importModule.js:36:53) at memoized (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/memoize.js:62:23) at /Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/babel-plugin-lodash/lib/index.js:217:63 at arrayEach (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/_arrayEach.js:15:9) at forEach (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/forEach.js:38:10) at /Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/babel-plugin-lodash/lib/index.js:193:30 at arrayEach (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/_arrayEach.js:15:9) at forEach (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/forEach.js:38:10) at /Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/babel-plugin-lodash/lib/index.js:181:28 at arrayEach (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/_arrayEach.js:15:9) at forEach (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/forEach.js:38:10) at PluginPass.Program (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/babel-plugin-lodash/lib/index.js:170:26) at newFn (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/visitors.js:160:14) at NodePath._call (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/path/context.js:47:20) at NodePath.call (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/path/context.js:37:18) at NodePath.visit (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/path/context.js:83:31) at TraversalContext.visitQueue (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/context.js:89:16) at TraversalContext.visitSingle (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/context.js:65:19) at TraversalContext.visit (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/context.js:112:19) at traverseNode (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/traverse-node.js:22:17) at traverse (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/index.js:52:34) at transformFile (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/core/lib/transformation/index.js:82:31) at transformFile.next () at run (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/core/lib/transformation/index.js:24:12) at run.next () at transform (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/core/lib/transform.js:22:33) at transform.next () at step (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/gensync/index.js:261:32) at /Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/gensync/index.js:273:13 at async.call.result.err.err (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/gensync/index.js:223:11)

ERROR in ./assets/js/theme/cart.js Module build failed (from ./node_modules/babel-loader/lib/index.js): TypeError: /Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/assets/js/theme/cart.js: Cannot read properties of undefined (reading 'has') at resolvePath (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/babel-plugin-lodash/lib/importModule.js:22:24) at importModule (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/babel-plugin-lodash/lib/importModule.js:36:53) at memoized (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/memoize.js:62:23) at /Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/babel-plugin-lodash/lib/index.js:203:62 at arrayEach (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/_arrayEach.js:15:9) at forEach (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/forEach.js:38:10) at /Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/babel-plugin-lodash/lib/index.js:193:30 at arrayEach (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/_arrayEach.js:15:9) at forEach (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/forEach.js:38:10) at /Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/babel-plugin-lodash/lib/index.js:181:28 at arrayEach (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/_arrayEach.js:15:9) at forEach (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/forEach.js:38:10) at PluginPass.Program (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/babel-plugin-lodash/lib/index.js:170:26) at newFn (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/visitors.js:160:14) at NodePath._call (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/path/context.js:47:20) at NodePath.call (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/path/context.js:37:18) at NodePath.visit (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/path/context.js:83:31) at TraversalContext.visitQueue (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/context.js:89:16) at TraversalContext.visitSingle (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/context.js:65:19) at TraversalContext.visit (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/context.js:112:19) at traverseNode (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/traverse-node.js:22:17) at traverse (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/index.js:52:34) at transformFile (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/core/lib/transformation/index.js:82:31) at transformFile.next () at run (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/core/lib/transformation/index.js:24:12) at run.next () at transform (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/core/lib/transform.js:22:33) at transform.next () at step (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/gensync/index.js:261:32) at /Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/gensync/index.js:273:13 at async.call.result.err.err (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/gensync/index.js:223:11)

ERROR in ./assets/js/theme/common/carousel/utils/activatePlayPauseButton.js Module build failed (from ./node_modules/babel-loader/lib/index.js): TypeError: /Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/assets/js/theme/common/carousel/utils/activatePlayPauseButton.js: Cannot read properties of undefined (reading 'has') at resolvePath (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/babel-plugin-lodash/lib/importModule.js:22:24) at importModule (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/babel-plugin-lodash/lib/importModule.js:36:53) at memoized (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/memoize.js:62:23) at /Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/babel-plugin-lodash/lib/index.js:203:62 at arrayEach (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/_arrayEach.js:15:9) at forEach (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/forEach.js:38:10) at /Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/babel-plugin-lodash/lib/index.js:193:30 at arrayEach (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/_arrayEach.js:15:9) at forEach (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/forEach.js:38:10) at /Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/babel-plugin-lodash/lib/index.js:181:28 at arrayEach (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/_arrayEach.js:15:9) at forEach (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/forEach.js:38:10) at PluginPass.Program (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/babel-plugin-lodash/lib/index.js:170:26) at newFn (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/visitors.js:160:14) at NodePath._call (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/path/context.js:47:20) at NodePath.call (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/path/context.js:37:18) at NodePath.visit (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/path/context.js:83:31) at TraversalContext.visitQueue (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/context.js:89:16) at TraversalContext.visitSingle (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/context.js:65:19) at TraversalContext.visit (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/context.js:112:19) at traverseNode (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/traverse-node.js:22:17) at traverse (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/index.js:52:34) at transformFile (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/core/lib/transformation/index.js:82:31) at transformFile.next () at run (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/core/lib/transformation/index.js:24:12) at run.next () at transform (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/core/lib/transform.js:22:33) at transform.next () at step (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/gensync/index.js:261:32) at /Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/gensync/index.js:273:13 at async.call.result.err.err (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/gensync/index.js:223:11)

ERROR in ./assets/js/theme/common/collapsible.js Module build failed (from ./node_modules/babel-loader/lib/index.js): TypeError: /Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/assets/js/theme/common/collapsible.js: Cannot read properties of undefined (reading 'has') at resolvePath (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/babel-plugin-lodash/lib/importModule.js:22:24) at importModule (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/babel-plugin-lodash/lib/importModule.js:36:53) at memoized (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/memoize.js:62:23) at /Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/babel-plugin-lodash/lib/index.js:217:63 at arrayEach (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/_arrayEach.js:15:9) at forEach (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/forEach.js:38:10) at /Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/babel-plugin-lodash/lib/index.js:193:30 at arrayEach (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/_arrayEach.js:15:9) at forEach (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/forEach.js:38:10) at /Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/babel-plugin-lodash/lib/index.js:181:28 at arrayEach (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/_arrayEach.js:15:9) at forEach (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/forEach.js:38:10) at PluginPass.Program (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/babel-plugin-lodash/lib/index.js:170:26) at newFn (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/visitors.js:160:14) at NodePath._call (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/path/context.js:47:20) at NodePath.call (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/path/context.js:37:18) at NodePath.visit (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/path/context.js:83:31) at TraversalContext.visitQueue (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/context.js:89:16) at TraversalContext.visitSingle (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/context.js:65:19) at TraversalContext.visit (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/context.js:112:19) at traverseNode (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/traverse-node.js:22:17) at traverse (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/index.js:52:34) at transformFile (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/core/lib/transformation/index.js:82:31) at transformFile.next () at run (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/core/lib/transformation/index.js:24:12) at run.next () at transform (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/core/lib/transform.js:22:33) at transform.next () at step (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/gensync/index.js:261:32) at /Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/gensync/index.js:273:13 at async.call.result.err.err (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/gensync/index.js:223:11)

ERROR in ./assets/js/theme/common/faceted-search.js Module build failed (from ./node_modules/babel-loader/lib/index.js): TypeError: /Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/assets/js/theme/common/faceted-search.js: Cannot read properties of undefined (reading 'has') at resolvePath (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/babel-plugin-lodash/lib/importModule.js:22:24) at importModule (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/babel-plugin-lodash/lib/importModule.js:36:53) at memoized (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/memoize.js:62:23) at /Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/babel-plugin-lodash/lib/index.js:217:63 at arrayEach (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/_arrayEach.js:15:9) at forEach (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/forEach.js:38:10) at /Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/babel-plugin-lodash/lib/index.js:193:30 at arrayEach (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/_arrayEach.js:15:9) at forEach (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/forEach.js:38:10) at /Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/babel-plugin-lodash/lib/index.js:181:28 at arrayEach (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/_arrayEach.js:15:9) at forEach (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/forEach.js:38:10) at PluginPass.Program (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/babel-plugin-lodash/lib/index.js:170:26) at newFn (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/visitors.js:160:14) at NodePath._call (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/path/context.js:47:20) at NodePath.call (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/path/context.js:37:18) at NodePath.visit (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/path/context.js:83:31) at TraversalContext.visitQueue (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/context.js:89:16) at TraversalContext.visitSingle (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/context.js:65:19) at TraversalContext.visit (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/context.js:112:19) at traverseNode (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/traverse-node.js:22:17) at traverse (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/index.js:52:34) at transformFile (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/core/lib/transformation/index.js:82:31) at transformFile.next () at run (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/core/lib/transformation/index.js:24:12) at run.next () at transform (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/core/lib/transform.js:22:33) at transform.next () at step (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/gensync/index.js:261:32) at /Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/gensync/index.js:273:13 at async.call.result.err.err (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/gensync/index.js:223:11)

ERROR in ./assets/js/theme/common/product-details.js Module build failed (from ./node_modules/babel-loader/lib/index.js): TypeError: /Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/assets/js/theme/common/product-details.js: Cannot read properties of undefined (reading 'has') at resolvePath (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/babel-plugin-lodash/lib/importModule.js:22:24) at importModule (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/babel-plugin-lodash/lib/importModule.js:36:53) at memoized (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/memoize.js:62:23) at /Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/babel-plugin-lodash/lib/index.js:203:62 at arrayEach (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/_arrayEach.js:15:9) at forEach (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/forEach.js:38:10) at /Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/babel-plugin-lodash/lib/index.js:193:30 at arrayEach (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/_arrayEach.js:15:9) at forEach (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/forEach.js:38:10) at /Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/babel-plugin-lodash/lib/index.js:181:28 at arrayEach (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/_arrayEach.js:15:9) at forEach (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/forEach.js:38:10) at PluginPass.Program (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/babel-plugin-lodash/lib/index.js:170:26) at newFn (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/visitors.js:160:14) at NodePath._call (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/path/context.js:47:20) at NodePath.call (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/path/context.js:37:18) at NodePath.visit (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/path/context.js:83:31) at TraversalContext.visitQueue (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/context.js:89:16) at TraversalContext.visitSingle (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/context.js:65:19) at TraversalContext.visit (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/context.js:112:19) at traverseNode (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/traverse-node.js:22:17) at traverse (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/index.js:52:34) at transformFile (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/core/lib/transformation/index.js:82:31) at transformFile.next () at run (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/core/lib/transformation/index.js:24:12) at run.next () at transform (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/core/lib/transform.js:22:33) at transform.next () at step (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/gensync/index.js:261:32) at /Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/gensync/index.js:273:13 at async.call.result.err.err (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/gensync/index.js:223:11)

ERROR in ./assets/js/theme/common/state-country.js Module build failed (from ./node_modules/babel-loader/lib/index.js): TypeError: /Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/assets/js/theme/common/state-country.js: Cannot read properties of undefined (reading 'has') at resolvePath (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/babel-plugin-lodash/lib/importModule.js:22:24) at importModule (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/babel-plugin-lodash/lib/importModule.js:36:53) at memoized (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/memoize.js:62:23) at /Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/babel-plugin-lodash/lib/index.js:217:63 at arrayEach (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/_arrayEach.js:15:9) at forEach (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/forEach.js:38:10) at /Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/babel-plugin-lodash/lib/index.js:193:30 at arrayEach (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/_arrayEach.js:15:9) at forEach (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/forEach.js:38:10) at /Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/babel-plugin-lodash/lib/index.js:181:28 at arrayEach (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/_arrayEach.js:15:9) at forEach (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/forEach.js:38:10) at PluginPass.Program (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/babel-plugin-lodash/lib/index.js:170:26) at newFn (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/visitors.js:160:14) at NodePath._call (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/path/context.js:47:20) at NodePath.call (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/path/context.js:37:18) at NodePath.visit (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/path/context.js:83:31) at TraversalContext.visitQueue (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/context.js:89:16) at TraversalContext.visitSingle (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/context.js:65:19) at TraversalContext.visit (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/context.js:112:19) at traverseNode (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/traverse-node.js:22:17) at traverse (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/index.js:52:34) at transformFile (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/core/lib/transformation/index.js:82:31) at transformFile.next () at run (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/core/lib/transformation/index.js:24:12) at run.next () at transform (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/core/lib/transform.js:22:33) at transform.next () at step (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/gensync/index.js:261:32) at /Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/gensync/index.js:273:13 at async.call.result.err.err (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/gensync/index.js:223:11)

ERROR in ./assets/js/theme/common/utils/form-utils.js Module build failed (from ./node_modules/babel-loader/lib/index.js): TypeError: /Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/assets/js/theme/common/utils/form-utils.js: Cannot read properties of undefined (reading 'has') at resolvePath (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/babel-plugin-lodash/lib/importModule.js:22:24) at importModule (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/babel-plugin-lodash/lib/importModule.js:36:53) at memoized (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/memoize.js:62:23) at /Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/babel-plugin-lodash/lib/index.js:217:63 at arrayEach (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/_arrayEach.js:15:9) at forEach (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/forEach.js:38:10) at /Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/babel-plugin-lodash/lib/index.js:193:30 at arrayEach (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/_arrayEach.js:15:9) at forEach (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/forEach.js:38:10) at /Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/babel-plugin-lodash/lib/index.js:181:28 at arrayEach (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/_arrayEach.js:15:9) at forEach (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/forEach.js:38:10) at PluginPass.Program (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/babel-plugin-lodash/lib/index.js:170:26) at newFn (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/visitors.js:160:14) at NodePath._call (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/path/context.js:47:20) at NodePath.call (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/path/context.js:37:18) at NodePath.visit (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/path/context.js:83:31) at TraversalContext.visitQueue (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/context.js:89:16) at TraversalContext.visitSingle (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/context.js:65:19) at TraversalContext.visit (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/context.js:112:19) at traverseNode (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/traverse-node.js:22:17) at traverse (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/index.js:52:34) at transformFile (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/core/lib/transformation/index.js:82:31) at transformFile.next () at run (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/core/lib/transformation/index.js:24:12) at run.next () at transform (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/core/lib/transform.js:22:33) at transform.next () at step (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/gensync/index.js:261:32) at /Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/gensync/index.js:273:13 at async.call.result.err.err (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/gensync/index.js:223:11)

ERROR in ./assets/js/theme/global/mobile-menu-toggle.js Module build failed (from ./node_modules/babel-loader/lib/index.js): TypeError: /Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/assets/js/theme/global/mobile-menu-toggle.js: Cannot read properties of undefined (reading 'has') at resolvePath (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/babel-plugin-lodash/lib/importModule.js:22:24) at importModule (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/babel-plugin-lodash/lib/importModule.js:36:53) at memoized (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/memoize.js:62:23) at /Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/babel-plugin-lodash/lib/index.js:217:63 at arrayEach (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/_arrayEach.js:15:9) at forEach (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/forEach.js:38:10) at /Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/babel-plugin-lodash/lib/index.js:193:30 at arrayEach (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/_arrayEach.js:15:9) at forEach (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/forEach.js:38:10) at /Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/babel-plugin-lodash/lib/index.js:181:28 at arrayEach (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/_arrayEach.js:15:9) at forEach (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/forEach.js:38:10) at PluginPass.Program (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/babel-plugin-lodash/lib/index.js:170:26) at newFn (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/visitors.js:160:14) at NodePath._call (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/path/context.js:47:20) at NodePath.call (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/path/context.js:37:18) at NodePath.visit (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/path/context.js:83:31) at TraversalContext.visitQueue (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/context.js:89:16) at TraversalContext.visitSingle (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/context.js:65:19) at TraversalContext.visit (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/context.js:112:19) at traverseNode (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/traverse-node.js:22:17) at traverse (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/index.js:52:34) at transformFile (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/core/lib/transformation/index.js:82:31) at transformFile.next () at run (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/core/lib/transformation/index.js:24:12) at run.next () at transform (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/core/lib/transform.js:22:33) at transform.next () at step (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/gensync/index.js:261:32) at /Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/gensync/index.js:273:13 at async.call.result.err.err (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/gensync/index.js:223:11)

ERROR in ./assets/js/theme/global/quick-search.js Module build failed (from ./node_modules/babel-loader/lib/index.js): TypeError: /Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/assets/js/theme/global/quick-search.js: Cannot read properties of undefined (reading 'has') at resolvePath (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/babel-plugin-lodash/lib/importModule.js:22:24) at importModule (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/babel-plugin-lodash/lib/importModule.js:36:53) at memoized (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/memoize.js:62:23) at /Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/babel-plugin-lodash/lib/index.js:217:63 at arrayEach (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/_arrayEach.js:15:9) at forEach (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/forEach.js:38:10) at /Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/babel-plugin-lodash/lib/index.js:193:30 at arrayEach (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/_arrayEach.js:15:9) at forEach (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/forEach.js:38:10) at /Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/babel-plugin-lodash/lib/index.js:181:28 at arrayEach (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/_arrayEach.js:15:9) at forEach (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/lodash/forEach.js:38:10) at PluginPass.Program (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/babel-plugin-lodash/lib/index.js:170:26) at newFn (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/visitors.js:160:14) at NodePath._call (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/path/context.js:47:20) at NodePath.call (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/path/context.js:37:18) at NodePath.visit (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/path/context.js:83:31) at TraversalContext.visitQueue (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/context.js:89:16) at TraversalContext.visitSingle (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/context.js:65:19) at TraversalContext.visit (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/context.js:112:19) at traverseNode (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/traverse-node.js:22:17) at traverse (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/traverse/lib/index.js:52:34) at transformFile (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/core/lib/transformation/index.js:82:31) at transformFile.next () at run (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/core/lib/transformation/index.js:24:12) at run.next () at transform (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/@babel/core/lib/transform.js:22:33) at transform.next () at step (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/gensync/index.js:261:32) at /Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/gensync/index.js:273:13 at async.call.result.err.err (/Users/josephvega/Desktop/Threepieceus+(NEW)-6.14.0/node_modules/gensync/index.js:223:11)`

Expected behavior

No Errors to be presented

Actual behavior

Terminal has errors causing for some assets not to load properly, works on live this is just local

Steps to reproduce behavior

nvm use v18.15.0 npm install in project stencil init stencil start

Versions

Cornerstone Theme Version: 6.14.0 Node Version: 18.15.0 as stated in Bigcommerce docs Stencil Version: 7.5.5