Skip to content

Importing a local script file inside a vue component errors. - Extensions #596

@SineVector241

Description

@SineVector241

Summary
When you reference a local script file that is located in the "scripts" folder and try to import the script using either an ESM import or require import like so...
import { Class } from "../scripts/main.js";
it errors saying it could not find it.

To Reproduce
Steps to reproduce the behavior:
Create a new Vue component and try to import a script inside the <script></script> tags.
Reference the imported class from the script file anywhere after the import.

Observed behavior
Errors saying it could not find it
Expected behavior
Should be able to import it

Screenshots / File Attachments
FirstScreenshot
SecondScreenshot
ThirdScreenshot

Platform (please complete the following information):

  • OS: Windows 11 Home Edition Version 21H1 Build 22000.85
  • App Version: v2.3.2

Additional context
No additional context

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

📚 Backlog

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions