ianwalter / codemirror-mode-elixir

A CodeMirror mode for the Elixir language
https://codemirror-mode-elixir.optick.io
MIT License
22 stars 5 forks source link

Uncaught error when loading UMD bundle #6

Open kiejo opened 5 years ago

kiejo commented 5 years ago

After upgrading from 1.1.1 to 1.1.2 I receive the following error when loading the UMD bundle (dist/codemirror-mode-elixir.umd.js):

Uncaught TypeError: Cannot read property 'defineMode' of undefined
    at elixir.js:1
    at elixir.js:1
    at elixir.js:1

The issue seems to be that the new version tries to access global.codemirror whereas the old version used global.CodeMirror.