question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't get it to work due to rangy - RequireJS

See original GitHub issue

If I install as per the instructions

bootstrap: 'components/bootstrap/dist/js/bootstrap.min',
'bootstrap.wysihtml5': 'components/bootstrap3-wysiwyg/dist/amd/bootstrap3-wysihtml5.all',

I get the error of Uncaught Error: Script error for: rangy as this is missing.

I then found in the examples that maybe rangy needs adding as follows

'rangy': '../components/wysihtml5x/lib/rangy/rangy-core',
'rangy-selectionsaverestore': '../components/wysihtml5x/lib/rangy/rangy-selectionsaverestore',

but this than gives an error of Uncaught Error: Mismatched anonymous define() module: function () {

Any suggestions as to how I can get this working?

Issue Analytics

  • State:open
  • Created 9 years ago
  • Reactions:2
  • Comments:6

github_iconTop GitHub Comments

10reactions
cesarvegacommented, May 10, 2016

any update on this ??

0reactions
thenitaicommented, Feb 6, 2015

So, this library doesn’t work anymore with requireJS? Getting a “TypeError: rangy.saveSelection is not a function” here 😭

Read more comments on GitHub >

github_iconTop Results From Across the Web

Common Errors - RequireJS
This fails because requirejs needs to be sure to load and execute all dependencies before calling the factory function above. If a dependency...
Read more >
RequireJS isn't working for me - Stack Overflow
I'm working on a personal project and I'm using a lot of JavaScript code and working with a few libraries and plugins like...
Read more >
usaa desktop login
In this article, we'll take a look at how to use the WebCatalog feature of the ... Randy joined USAA in 2017 as...
Read more >
RequireJS - Quick Guide - Tutorialspoint
RequireJS - Quick Guide, RequireJS is a JavaScript library and file loader which ... define(function () { //Do setup work here return {...
Read more >
From Require.js to Webpack — Part 2 (The How) - Medium
If you get your dependencies from NPM you don't need any of that! They will just work and you can go on building...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found