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

TypeError: O is not a function #15

Open
confrodog opened this issue Jun 24, 2020 · 7 comments
Open

TypeError: O is not a function #15

confrodog opened this issue Jun 24, 2020 · 7 comments

Comments

@confrodog
Copy link

confrodog commented Jun 24, 2020

i think it might have something to do with the image addition

Screen Shot 2020-06-24 at 3 02 42 PM

I was trying to learn how to use this module by building one attribute at a time, but couldn't even get past the first one

@waynedyck
Copy link

waynedyck commented Jan 28, 2021

Had the same issue and could not resolve it. Ended up deleting the repo.

@Zerg00s
Copy link

Zerg00s commented May 26, 2022

Same issue here. Was anyone able to resolve it?

ERROR:
O is not a function

CALL STACK:
TypeError: O is not a function
    at SVGImageElement.<anonymous> (https://localhost:4321/dist/program-chart-web-part.js:499:2638)
    at SVGImageElement.attrFunction (https://localhost:4321/dist/program-chart-web-part.js:1383:21)
    at https://localhost:4321/dist/program-chart-web-part.js:1676:16
    at d3_selection_each (https://localhost:4321/dist/program-chart-web-part.js:1682:30)
    at Array../node_modules/d3/d3.js.d3_selectionPrototype.each (https://localhost:4321/dist/program-chart-web-part.js:1675:12)
    at Array../node_modules/d3/d3.js.d3_selectionPrototype.attr (https://localhost:4321/dist/program-chart-web-part.js:1366:17)
    at t.exports (https://localhost:4321/dist/program-chart-web-part.js:499:2582)
    at init (https://localhost:4321/dist/program-chart-web-part.js:433:2875)
    at e.value (https://localhost:4321/dist/program-chart-web-part.js:451:1739)
    at ss (https://res-1.cdn.office.net/files/sp-client/sp-webpart-workbench-assembly_en-us_37194a91081a5a32a8fa7de43d5df223.js:69:89313)
+-- [email protected]
+-- [email protected]
node.js v14.19.1

@waynedyck
Copy link

@Zerg00s not as of today. I would still like to get this working as it is one of the best looking ones I have found.

@rastogi-rishabh
Copy link

Try using a class component instead of a functional component

@pedrohsmaia
Copy link

anyone managed to solve this?

@sarahm16
Copy link

Thanks @rastogi-rishabh! Using a class component fixed this issue for me :)

@waynedyck
Copy link

waynedyck commented Apr 16, 2024

@sarahm16 do you have a small code sample you code post of how you solved the TypeError?

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

6 participants