You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using this lib with nextjs and the fact that places.js is imported makes SSR fail with the error:
window is not defined
ReferenceError: window is not defined
at Object.<anonymous> (/var/www/project/node_modules/autocomplete.js/zepto.js:5:119)
at Module._compile (module.js:652:30)
at Module._extensions..js (module.js:663:10)
at Object.require.extensions.(anonymous function) [as .js] (/var/www/project/node_modules/ts-node/src/index.ts:422:14)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/var/www/project/node_modules/autocomplete.js/src/standalone/index.js:4:13)
at Module._compile (module.js:652:30)
at Module._extensions..js (module.js:663:10)
at Object.require.extensions.(anonymous function) [as .js] (/var/www/project/node_modules/ts-node/src/index.ts:422:14)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
The text was updated successfully, but these errors were encountered:
I'm using this lib with nextjs and the fact that
places.js
is imported makes SSR fail with the error:The text was updated successfully, but these errors were encountered: