Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Import a script inside a component or api cause an error #107

@RoXuS

Description

@RoXuS

Hey!

I'm trying to call a script outside my aleph project (I am on a monorepo project).

import React from "https://esm.sh/react";
import a from "../../dt-gitlab-wrapper/index.ts";

const b = new a("1");

export default function Runners() {
...
}

When I do that I get the following error:
image

It's normal behavior? We can't call a script outside the component?

Metadata

Metadata

Assignees

No one assigned

    Labels

    ✘ bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions