Skip to content

Problem when using CDN file #40

@arvindpdmn

Description

@arvindpdmn

This is what I have in <head>:

<script src="https://cdn.jsdelivr.net/npm/codemirror-spell-checker@1.1.2/src/js/spell-checker.min.js"  type="text/javascript"></script>
<script src="https://codemirror.net/addon/mode/overlay.js"  type="text/javascript"></script>

This fails with error ReferenceError: require is not defined due to an attempt to require typo-js. What I understand is that require will work within Node.js runtime but not in browser. What's the solution?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions