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

bug(ci): corrupted npm/cdn version 5.2.1 #7830

Open
felehdev opened this issue Mar 24, 2022 · 4 comments
Open

bug(ci): corrupted npm/cdn version 5.2.1 #7830

felehdev opened this issue Mar 24, 2022 · 4 comments

Comments

@felehdev
Copy link

felehdev commented Mar 24, 2022

Version

5.2.1

Test Case

http://jsfiddle.net/fabricjs/Da7SP/

Information about environment

Nodejs

Steps To Reproduce

I have opened a thread https://github.com/fabricjs/fabric.js/issues/7828 and Mr Shachar has replied me and closed the thread :( but the bug still produced

Error Message & Stack Trace

TypeError: Cannot read property 'then' of undefined at Object. (C:\www\fabric\image.js:9:57) at Module._compile (node:internal/modules/cjs/loader:1092:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1121:10) at Module.load (node:internal/modules/cjs/loader:972:32) at Function.Module._load (node:internal/modules/cjs/loader:813:14) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:76:12) at node:internal/main/run_main_module:17:47

Expected Behavior

Actual Behavior


image

@ShaMan123
Copy link
Contributor

ShaMan123 commented Mar 26, 2022

related #7787 ?
build files might be outdated. Try rebuilding fabric by running npm run build from fabric node_module folder

@ShaMan123 ShaMan123 changed the title fabricjs doesn't load image on node bug(ci): corrupted npm/cdn version 5.2.1 Mar 27, 2022
@ShaMan123
Copy link
Contributor

duplicate #7787

@asturur
Copy link
Member

asturur commented Jun 17, 2022

hi @felahdev, is the image.js file your own code?
Version 5.2.1 does not support Promise yet, it still take callbacks.

Can you post here image.js?

@felehdev
Copy link
Author

felehdev commented Oct 11, 2022 via email

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

No branches or pull requests

3 participants