Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught ReferenceError: exports is not defined #165

Open
ntinhhcm opened this issue Apr 19, 2022 · 0 comments
Open

Uncaught ReferenceError: exports is not defined #165

ntinhhcm opened this issue Apr 19, 2022 · 0 comments

Comments

@ntinhhcm
Copy link

ntinhhcm commented Apr 19, 2022

Current development environment on my computer:

  • MacOS 12.3.1
  • Nodejs v12.9.0
  • Npm v6.10.2
  • Stencil-cli v4.0.0

When I execute the command stencil start and the website is opened, an error appears in the browser's console:

index.js:170 Uncaught ReferenceError: exports is not defined
at Module../node_modules/@bigcommerce/stencil-utils/node_modules/query-string/index.js (index.js:170:1)
at webpack_require (bootstrap:63:1)
at Module../node_modules/@bigcommerce/stencil-utils/src/lib/utils.js (utils.js:2:21)
at webpack_require (bootstrap:63:1)
at Module../node_modules/@bigcommerce/stencil-utils/src/api/product-attributes.js (theme-bundle.main.js:5951:68)
at webpack_require (bootstrap:63:1)
at Module../node_modules/@bigcommerce/stencil-utils/src/api.js (api.js:1:1)
at webpack_require (bootstrap:63:1)
at Module. (main.js:1:1)
at Module../node_modules/@bigcommerce/stencil-utils/src/main.js (theme-bundle.main.js:6918:30)
./node_modules/@bigcommerce/stencil-utils/node_modules/query-string/index.js @ index.js:170
webpack_require @ bootstrap:63
./node_modules/@bigcommerce/stencil-utils/src/lib/utils.js @ utils.js:2
webpack_require @ bootstrap:63
./node_modules/@bigcommerce/stencil-utils/src/api/product-attributes.js @ theme-bundle.main.js:5951
webpack_require @ bootstrap:63
./node_modules/@bigcommerce/stencil-utils/src/api.js @ api.js:1
webpack_require @ bootstrap:63
(anonymous) @ main.js:1
./node_modules/@bigcommerce/stencil-utils/src/main.js @ theme-bundle.main.js:6918
webpack_require @ bootstrap:63
(anonymous) @ theme-bundle.main.js:4540
./assets/js/theme/global/quick-search.js @ theme-bundle.main.js:4608
webpack_require @ bootstrap:63
(anonymous) @ theme-bundle.main.js:1872
./assets/js/theme/global.js @ theme-bundle.main.js:1944
webpack_require @ bootstrap:63
(anonymous) @ bootstrap:196
./assets/js/app.js @ theme-bundle.main.js:368
webpack_require @ bootstrap:63
(anonymous) @ bootstrap:196
(anonymous) @ bootstrap:196
(index):8186 Uncaught TypeError: window.stencilBootstrap is not a function
at (index):8186:20
(anonymous) @ (index):8186

Is anyone having the same problem as me? Please give me your advice and solution to fix this issue. I am very appreciative of that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant