Skip to content

Enable support for the experimental syntax 'importAssertions' #360

Open
@marcuslindblom

Description

@marcuslindblom

In my scripts I have import sheet from "./index.css" assert { type: "css" };
How can I enable this in Klap?

This is the error I get

Add @babel/plugin-syntax-import-assertions (https://git.io/JUbkv) to the 'plugins' section of your Babel config to enable parsing.
(node:67497) UnhandledPromiseRejectionWarning: Error: SyntaxError: /Users/marcus/Library/Mobile Documents/com~apple~CloudDocs/Projects/private/wieldy/src/app/wwwroot/scripts/components/save-button/index.js: Support for the experimental syntax 'importAssertions' isn't currently enabled (5:33):

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