Skip to content

Demo of an issue when importing built Vue library

Notifications You must be signed in to change notification settings

some1else/buggy-vue-lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fixed

The issue is caused due to the library being linked into the example project for development purposes. The manual suggests disabling resolve.symlinks, which fixed the issue. See commit

buggy-vue-lib

Reproduction of an issue when using a built Vue library

1. Project setup

/tmp/buggy-vue-lib $ yarn install

2. Compile lib for production

/tmp/buggy-vue-lib $ yarn build

Creates dist/buggyvuelib.umd.js

3. Go to example project and install dependencies

/tmp/buggy-vue-lib $ cd example && yarn install

4. Try to serve or build the example project until success

/tmp/buggy-vue-lib/example $ yarn serve

or

/tmp/buggy-vue-lib/example $ yarn build

The first and sometimes second run will cause an error and fail. The project will compile and run successfully after a few retries. In case of yarn serve, the failed build has to be exited with ^C before trying again.

About

Demo of an issue when importing built Vue library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published