meteorlxy / vue-showdown

:page_with_curl: Use showdown as a vue component
https://vue-showdown.js.org
MIT License
129 stars 23 forks source link

docs build failed when using webpack alias #4

Closed meteorlxy closed 5 years ago

meteorlxy commented 5 years ago

See commit https://github.com/meteorlxy/vue-showdown/commit/e459de80973a91fcb3e48877b7e1c76762109ced :

https://github.com/meteorlxy/vue-showdown/blob/e459de80973a91fcb3e48877b7e1c76762109ced/docs/.vuepress/config.js#L76-L78

https://github.com/meteorlxy/vue-showdown/blob/e459de80973a91fcb3e48877b7e1c76762109ced/docs/.vuepress/enhanceApp.js#L1


After adding alias for vue-showdown, vuepress dev works well, but vuepress build failed with:

Error: Cannot find module 'vue-showdown'

Build details: https://travis-ci.org/meteorlxy/vue-showdown/builds/470968700#L473-L491


Cannot rebuild a minimal repro repo, and cannot locate the error by now. So have to revert it in https://github.com/meteorlxy/vue-showdown/commit/c4fe4f608af21a07a0dcd70ba0a13df0e2a1eac6