Comments (3)
Hi @matthughes Firstly codesandbox environment is very weird. I created a fork https://codesandbox.io/s/suspicious-fire-ucnnq0?file=/package.json and used 4.1.0 there. When I refresh this on my browser with my account signed in I see nothing. Not even an error. Firstly it renders canvas, then it disappears, then I don't see anything in logs.
signed.in.codesandbox.mp4
Secondly, if I open this link on a private browser window, I see no error. It just works!
Thirdly, I downloaded a copy to my local machine. I tried to run it on my own machine. I executed npm run build
and npm run start
I get errors on both of them. See below logs
PS C:\Users\Exper\Desktop\ucnnq0> npm run build
[email protected] build C:\Users\Exper\Desktop\ucnnq0
parcel build index.html× C:\Users\Exper\Desktop\ucnnq0\src\fonts\NokiaPureText-Regular.ttf: ENOENT: no such file or directory, open 'C:\Users\Exper\Desktop\ucnnq0\src\fonts\NokiaPureText-Regular.ttf'
Error: ENOENT: no such file or directory, open 'C:\Users\Exper\Desktop\ucnnq0\src\fonts\NokiaPureText-Regular.ttf'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build:parcel build index.html
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Exper\AppData\Roaming\npm-cache_logs\2022-06-08T06_20_09_494Z-debug.log
PS C:\Users\Exper\Desktop\ucnnq0> npm run start[email protected] start C:\Users\Exper\Desktop\ucnnq0
parcel index.html --openServer running at http://localhost:1234
× C:\Users\Exper\Desktop\ucnnq0\src\imgs\ic_router_circle.svg: ENOENT: no such file or directory, open 'C:\Users\Exper\Desktop\ucnnq0\src\imgs\ic_router_circle.svg'
Error: ENOENT: no such file or directory, open 'C:\Users\Exper\Desktop\ucnnq0\src\imgs\ic_router_circle.svg'
So as a result I can say I cannot reproduce the issue properly
from cytoscape.js-context-menus.
Do you have a test or demo project that uses module support in 4.0? Because in my work project, 4.0 works but 4.1 does not. When I require the module in 4.1 it shows up as undefined whereas everything works in 4.0 so it seems like something changed in the module export.
from cytoscape.js-context-menus.
I tried to run a local version with node v10.15.3 and npm 6.14.15. I still get some errors but fixed them by copy-pasting the "imgs" and "fonts" folder into the "src" folder.
Now I can run locally but still, I don't see any error. I'm using Google Chrome 102 on Windows 10. What browser and operating system are you using? It might be related to the browser or OS.
Also, I see https://stackoverflow.com/questions/61881027/custom-element-illegal-constructor it looks pretty related since we are defining custom elements. You might try calling the static define
functions inside the class definitions
from cytoscape.js-context-menus.
Related Issues (20)
- submenu-indicator-default.svg missing when using SvelteKit / Vite HOT 2
- Context menu doesn´t show if browser is in full screen HOT 1
- mouseover event is activated for the entities under the context menu HOT 3
- Trigger context menus only for nodes. HOT 2
- Pop up menu appears outside cytoscape network, even when nothing is clicked HOT 7
- multiple event types HOT 1
- How can I dynamically add items in a submenu? HOT 1
- How can I check if a particular submenu item already exists? HOT 3
- Is it possible to generate a fresh context menu during every right-click event on a node?
- How can I add styling only to a submenu? HOT 6
- Does not work on Next.js SSR/CSR HOT 8
- Menu hide itself when zoom in graph HOT 1
- demos and menu don't work on mobile
- Menus not clickable when using cytoscape-expand-collapse
- Dynamic Context Menus? HOT 6
- Proper way to conditionally trigger on left click (tap)?
- "When I right-click on a node with my mouse, it's all good and shows the menu options I set up. But when I click on a blank area, I get this error popping up saying 'i.is is not a function TypeError: i.is'. Any idea how I can fix this?"
- Context Menu For Multiple Elements
- Submenu indicator is not found HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cytoscape.js-context-menus.