You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug Description
when I try to get the diagram of my NodeJS file I use the command "npx arkit -f .\code\code.js -o code.svg"
I got this error
orignalcode\node_modules\arkit\dist\generator.js:124
componentsByName[component.name].push(component);
^
TypeError: componentsByName[component.name].push is not a function
can anyone help me please to get over this error?
The text was updated successfully, but these errors were encountered:
When the component happens to have a name which matches one of the method names on Array (in my case it was 'toString' (which was in a file called bower_components/jquery/src/var/toString.js) then push is not a function because the value of componentsByName[component.name] is a Function, not an Array, and so does not have a push function on it.
Just sharing this insight before going to be. Might try to fix this in the morning.
Bug Description
when I try to get the diagram of my NodeJS file I use the command "npx arkit -f .\code\code.js -o code.svg"
I got this error
orignalcode\node_modules\arkit\dist\generator.js:124
componentsByName[component.name].push(component);
^
TypeError: componentsByName[component.name].push is not a function
can anyone help me please to get over this error?
The text was updated successfully, but these errors were encountered: