editor icon indicating copy to clipboard operation
editor copied to clipboard

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

Open SineVector241 opened this issue 1 year ago • 0 comments

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 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

SineVector241 avatar Sep 04 '22 04:09 SineVector241