-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
[1.3] Build system bug? (canvas, konva, jsdom) #6613
Comments
As a hack, if I go into
Then the app runs with no errors. Chrome works great. Firefox, not so much:
which appears to be this code coming from jsdom: // Proxy feature functions to features module. // 56
for (const propName of ["availableDocumentFeatures", "defaultDocumentFeatures", "applyDocumentFeatures"]) { // 57
defineGetter(exports, propName, () => documentFeatures[propName]); // 58
defineSetter(exports, propName, val => documentFeatures[propName] = val); // 59
} It doesn't like |
The |
The weird thing is, I'm not sure why Konva (HTML5 canvas library) would refer to a binary anyway. I guess that's a separate issue.
Why is jsdom being so finicky? What about the errors in Firefox? |
Firefox is complaining about the |
Ahh.. so again, not a Meteor issue. :) Thanks for pointing me in the right direction, Ben! |
Still a bug. The canvas package shouldn't be loaded by web.browser. |
Bump. Everything worked fine for me with Meteor 1.3-beta8, but upgrading breaks canvas with the same warning/ error. More specifically, I'm using fabricjs with |
If the
And then Just a thought! |
Have this issue. I'm trying to install
after all on meteor start
I've tried to add |
This canvas package thing is killing me, too. |
Had the same issue as @tastemeru. Fixed it by cloning our repo again and then |
This is a weird one. I can't even really explain it, but things are majorly broken.
Here's how to replicate:
git clone https://github.com/ffxsam/ffx-meteor-react-boilerplate.git weird-bug
cd weird-bug
npm install && npm run scaffold
npm install --save konva canvas
(see note below)meteor
(note: make sure cairo is installed!
brew install cairo
)At this point, everything should be fine. Now, break it. Edit
/client/pages/Home.js
and add this line below theimport React
line:Save it. Then this happens:
Any ideas?
The text was updated successfully, but these errors were encountered: