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

Cannot read property 'initialize' of undefined, inoperable in an AMD/requirejs environment in Jupyter Notebook #662

Closed
Honghe opened this issue May 14, 2018 · 1 comment
Labels
Type: New Shape Request for new shape

Comments

@Honghe
Copy link

Honghe commented May 14, 2018

Environment:

  • Jupyter version: 4.4.0
%%javascript
require(["https://unpkg.com/mermaid@8.0.0-rc.8/dist/mermaid.js"], function(mermaid){
    console.log(mermaid)
    mermaid.initialize({startOnLoad:true})
})

console log:

undefined
require.js?v=6da8be361b9ee26c5e721e76c6d4afce:900 TypeError: Cannot read property 'initialize' of undefined
    at eval (eval at append_javascript (outputarea.js:757), <anonymous>:3:13)
    at Object.execCb (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1690)
    at Module.check (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:865)
    at Module.enable (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1177)
    at Module.init (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:783)
    at require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1453
check @ require.js?v=6da8be361b9ee26c5e721e76c6d4afce:900
enable @ require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1177
init @ require.js?v=6da8be361b9ee26c5e721e76c6d4afce:783
(anonymous) @ require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1453
setTimeout (async)
req.nextTick @ require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1809
localRequire @ require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1442
requirejs @ require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1791
(anonymous) @ VM18579:1
append_javascript @ outputarea.js:757
OutputArea.append_mime_type @ outputarea.js:691
OutputArea.append_display_data @ outputarea.js:654
OutputArea.append_output @ outputarea.js:346
OutputArea.handle_output @ outputarea.js:257
output @ codecell.js:376
Kernel._handle_output_message @ kernel.js:1196
f @ jquery.min.js:2
Kernel._handle_iopub_message @ kernel.js:1223
Kernel._finish_ws_message @ kernel.js:1015
(anonymous) @ kernel.js:1006
Promise.then (async)
Kernel._handle_ws_message @ kernel.js:1006
f @ jquery.min.js:2
[Violation] Forced reflow while executing JavaScript took 37ms

ps: similar bug fixed in 2015, #127

@stale
Copy link

stale bot commented Jun 29, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Type: New Shape Request for new shape label Jun 29, 2019
mgenereu pushed a commit to mgenereu/mermaid that referenced this issue Jun 25, 2022
…ermaid-js#662)

Bumps [eslint-plugin-tailwindcss](https://github.com/francoismassart/eslint-plugin-tailwindcss) from 3.4.4 to 3.5.0.
- [Release notes](https://github.com/francoismassart/eslint-plugin-tailwindcss/releases)
- [Commits](francoismassart/eslint-plugin-tailwindcss@v3.4.4...v3.5.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-tailwindcss
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: New Shape Request for new shape
Projects
None yet
Development

No branches or pull requests

1 participant