Skip to content

Can't import a variable from other file #4562

Closed
@MouadBH

Description

@MouadBH

Describe the bug
I tried to import a variable from other javascript file to the file of my cube, but I faced this problem while when I used import, photo of the error below.

To Reproduce
I followed the instructions in this link https://cube.dev/docs/schema/reference/execution-environment#import-export

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
image
image
image

Version:
[0.29.23]

Additional context
MiskQ.js and schools.js are in the same folder.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionThe issue is a question. Please use Stack Overflow for questions.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions