-
Notifications
You must be signed in to change notification settings - Fork 4
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
Issue in webpack prevents use of amdefine and hence mscgenjs #45
Comments
This is caused by webpack/webpack#5316 - which most likely affects all libraries that - just like mscgenjs - use amdefine to expose AMD modules for use in commonJS. Hence the ideal and correct solution for this would be for webpack to fix issue 5316. I see the issue is open since July 2017, though, so there's probably issues that have higher priority in the webpack project. Alternatives:
|
@pgawali-broadsoft the workaround with almond seems to work ☝️. To use it you'll need to require the almond generated file in I'll need to test/ document and polish this before releasing (maybe this weekend, maybe later), but if you want to try it already checkout above branch and use the thing in |
Thanks a lot . Issue mostly resolved but tool-tip functionality seems to be not working for me .I can see 'title'tag with populate text in DOM even though tool-tip is not visible on hover. Is it expected in this workaround? |
Tool-tip functionality should work as before. I've tested it in firefox 57, chrome 63 and safari 11 and there it works as expected. (Note that browsers implement the tooltip on text hover only, so if the label is super small or absent (e.g. |
I'll merge & publish this weekend - just a heads up: I've renamed the thing from // commonjs, only for use with webpack > 2,
var msgenjs = require('mscgenjs/dist/webpack-issue-5316-workaround'); |
ok. Thanks for workaround. :) |
mscgenjs is not compatible with webpack v3.6.0 .Getting error Uncaught Error: define cannot be used indirect . This is due to bug with webpack that 'define' is not support. Is it possible to make it compatible current version of webpack ?
{
"name": "mscgenjs",
"version": "1.9.0",
"description": "Implementation of MscGen in JavaScript",
"main": "index.js",
"dependencies": {
"amdefine": "1.0.1",
"requirejs": "2.3.2"
},
Working fine older"version": "1.12.15".
The text was updated successfully, but these errors were encountered: