Skip to content

Failed to import - add support of importing css #1191

@coderaiser

Description

@coderaiser

Failing module

import { createMenu } from "https://esm.sh/aleman@1.0.7/menu/menu.js"

The problem is:

import style from 'style.css' with {type: 'css'}

Works in Chrome but should be correct mime type. Is it possible to add text/css when send css file?

Error message

After onload I got this:

Image

Additional info

  • Browser info:

Metadata

Metadata

Assignees

No one assigned

    Labels

    browserNot working in Browser

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions