Skip to content
This repository was archived by the owner on Jan 18, 2022. It is now read-only.
This repository was archived by the owner on Jan 18, 2022. It is now read-only.

Cant import javascript or other vue files into vue single file components #460

@DanielTerletzkiy

Description

@DanielTerletzkiy

Version

5.0.0

Reproduction link

github.com

Steps to reproduce

open vue file, in script tag make an import to any file (vue, js, etc), compile and open project where you use the compiled plugin

What is expected?

rollup compiles everything into a single file and handles all imports accordingly

What is actually happening?

imports are still inside of compiled file, leading nowhere

Example:
Could not find module in path: 'vuelize/dist/src/mixins/flex' relative to '/node_modules/vuelize/dist/vuelize.esm.js'

flex was a js file imported in one of the now compiled vue components


i first noticed the problem while making recursive vue components, wich is, as of now, not achievable for me, because it requires the same vue file to be imported again to declare it inside the components. The import exists inside the compiled file, leading to nowhere and "crashing" the app with something like this:

Could not find module in path: 'vuelize/dist/src/mixins/flex' relative to '/node_modules/vuelize/dist/vuelize.esm.js'

i also tried decaring the source folder in the package.json, but then i dont have any way of reasonably importing, for both prod and dev, as prod esm.js files cant handle @ or~ imports

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy