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

import not working after installing npm package in React #131

Open
pavankumar1792 opened this issue Sep 5, 2018 · 0 comments
Open

import not working after installing npm package in React #131

pavankumar1792 opened this issue Sep 5, 2018 · 0 comments

Comments

@pavankumar1792
Copy link

Installed messenger-hubspot package and import not working in react.
Any react specific sample implementation or docs would be helpful.

node_1 | [2] [dev:server] /usr/src/app/tmp/webpack://messenger-hubspot/build/js/messenger.js:22
node_1 | [2] })();
node_1 | [2] ^
node_1 | [2] ReferenceError: window is not defined
node_1 | [2] at /usr/src/app/tmp/webpack:/
/messenger-hubspot/build/js/messenger.js:10:1
node_1 | [2] at Object.exports.__esModule (/usr/src/app/tmp/webpack:/~/messenger-hubspot/build/js/messenger.js:22:2)
node_1 | [2] at webpack_require (/usr/src/app/tmp/webpack:/webpack/bootstrap 36d1633f01919608117f:19:1)
node_1 | [2] at Object._prevMessenger (/usr/src/app/tmp/webpack:/src/routes/BlackList.js:28:1)
node_1 | [2] at webpack_require (/usr/src/app/tmp/webpack:/webpack/bootstrap 36d1633f01919608117f:19:1)
node_1 | [2] at Object. (/usr/src/app/tmp/webpack:/src/app/routes.js:37:1)
node_1 | [2] at webpack_require (/usr/src/app/tmp/webpack:/webpack/bootstrap 36d1633f01919608117f:19:1)
node_1 | [2] at Object. (/usr/src/app/tmp/webpack:/server.babel.js:9:1)
node_1 | [2] at webpack_require (/usr/src/app/tmp/webpack:/webpack/bootstrap 36d1633f01919608117f:19:1)
node_1 | [2] at Object. (/usr/src/app/tmp/bundle.js:50:19)
node_1 | [2] [dev:server] [nodemon] app crashed - waiting for file changes before starting...

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