Skip to content

Failed to load module script: The server responded with a non-JavaScript MIME type of "text/html".  #21

@knightcube

Description

@knightcube

I just have two lines in my index.js file

import Notion from "./node_modules/notion-api-js"
console.log("Hello Notion")

and I get this error :
Failed to load module script: The server responded with a non-JavaScript MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec.

How do I resolve this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions