Skip to content

IDE cannot resolve imported local file #241

Open
@ultimate-tester

Description

Hi,

I'm shimming a file called "Foo.js". This file is local and it's path relative to my entry file is "../FolderB/Foo.js". With the following configuration I am able to shim it:

"browserify-shim": {
        "Foo": "global:Foo"
    }

And then I imported it with

import Foo from 'Foo'

This works fine with Browserify, but the IDE gets confused and tells me "Module is not installed".
Is there any way to specify the absolute path to the file in browserify-shim config and make it recognize the relative import from my entry file so both Browserify-shim and the IDE are happy?

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