Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPM Broken #6

Closed
richardtallent opened this issue Dec 24, 2018 · 1 comment
Closed

NPM Broken #6

richardtallent opened this issue Dec 24, 2018 · 1 comment

Comments

@richardtallent
Copy link
Owner

Well, I've "upgraded" to vue-cli, and now I can't figure out for the life of me how to build and publish this one little component to npm in a way that makes it importable from other projects.

I've been following the directions here, which mention nothing about what to do as the "main" entry in package.json, so I've been ticking up versions trying different approaches, with no luck.

https://vuejs.org/v2/cookbook/packaging-sfc-for-npm.html

Any help would be greatly appreciated. I'd like to get this version out to everyone (including me, I'm trying to use it in one of my own projects) without having to publish another 50 attempts.

@richardtallent
Copy link
Owner Author

Thanks to the good folks on the Vue discord chat, especially BogdanL and Nate Mallison, this has been resolved and 1.1.3 is working! However, it no longer uses the default export (for now), so imports will need to dereference it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant