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

ReferenceError: window is not defined #12

Closed
ritesh-bobtrade opened this issue Jun 28, 2017 · 3 comments
Closed

ReferenceError: window is not defined #12

ritesh-bobtrade opened this issue Jun 28, 2017 · 3 comments

Comments

@ritesh-bobtrade
Copy link

ReferenceError: window is not defined
at Object. (D:\bobtrade\bobtrade-marketplace\node_modules\react-trello\dist\components\Board.js:33:61)
at Module._compile (module.js:570:32)
at Module._extensions..js (module.js:579:10)
at Object.require.extensions.(anonymous function) [as .js] (D:\bobtrade\bobtrade-marketplace\node_modules\babel-register\lib\node.js:152:7)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (D:\bobtrade\bobtrade-marketplace\node_modules\react-trello\dist\index.js:8:14)
at Module._compile (module.js:570:32)
at Module._extensions..js (module.js:579:10)
at Object.require.extensions.(anonymous function) [as .js] (D:\bobtrade\bobtrade-marketplace\node_modules\babel-register\lib\node.js:152:7)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (D:/bobtrade/bobtrade-marketplace/client/components/Merchant/Order/Orders.js:4:1)
at Module._compile (module.js:570:32)
at loader (D:\bobtrade\bobtrade-marketplace\node_modules\babel-register\lib\node.js:144:5)
at Object.require.extensions.(anonymous function) [as .js] (D:\bobtrade\bobtrade-marketplace\node_modules\babel-register\lib\node.js:154:7)

@rcdexta
Copy link
Owner

rcdexta commented Jun 28, 2017

Hi @ritesh-bobtrade Can you mention if you are using react-trello via npm or bower or trying to include the dist js file directly. The dist build is for browser only.

@ritesh-bobtrade
Copy link
Author

hi @rcdexta i am using react-trello via npm.

@rcdexta
Copy link
Owner

rcdexta commented Jul 5, 2017

The latest release of react-trello works with npm. Tested it since you reported this issue. Can you refer to the sample repo: https://github.com/rcdexta/react-trello-example and see if this works fine on your machine?

@rcdexta rcdexta closed this as completed Jul 5, 2017
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

2 participants