Closed antogno closed 1 year ago
Can I get your star if the just-released v0.10.16 solves your issue? tks.
It works now, thank you!
It doesn't still work for me with Typescript and Vitepress.
I get Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in C:\code\sx.design.portal\node_modules\vanilla-jsoneditor\package.json
when trying to build
@husayt Doesn't seem to be the same problem. Please open a new issue with a valid minimal reproduction.
@cloydlau after spending whole day trying to solve it I have switched to vue3-ts-jsoneditor
. It doesn't have this problem. Thanks
@husayt It actually doesn't prove anything, you had error using json-editor-vue is probablly due to your own code or the way you're using it. That's why a reproduction is required, you would understand this if you have read https://antfu.me/posts/why-reproductions-are-required which was written by Vue & Vite core team member. I replied to your message you leaved under this unrelated issue for your own convenience within an hour, yet you'd rather spend a whole day trying than opening a new one. Even if there's a real problem with json-editor-vue, there's no way to find out.
@cloydlau i appreciate why reproduction is needed, and I didn't blame you to get so defensive.
it is just after spending more than allocated time on this I ran out of time and had no physical opportunity to provide you with reproduction.
i tried opening a new issue, but one can't do it unless he answers all the questions and provide repro, which I couldn't do.
But at least I wanted to leave some information about the problem I experienced so that others would know.
@husayt This issue of svelte-jsoneditor which I opened 17 days ago is a confirmed bug and remains unsolved for now. The vue3-ts-jsoneditor
you're using right now based on svelte-jsoneditor too. I mean, open source software is served "as-is", me or author of svelte-jsoneditor don't get paid to do this. If you think opening an issue or providing a reproduction is costing your time, we too. The fact is that more than half issues of json-editor-vue or I believe, most open source software, are turned out to be invalid, I've spent time investigating them and even helped a few with correcting their own codes. Sending PRs or at least providing valid efficient trackable issues is reciprocal. So please forgive my defensiveness.
@cloydlau I just checked my issue against v0.11.0 and, happy to say, that it is fixed in that version. Seems like switch peerdependency resolves this.
Thanks for this
Before you start, please make sure to:
Link to minimal reproduction
None
Steps to reproduce
What is expected?
I expected this to work:
What is actually happening?
Instead I got this error:
System Info
Package Manager
npm
Any additional comments?
I managed to make it work by adding the following code in the
shims-vue.d.ts
file in the root folder of my app:Am I missing something? Shouldn't it have worked without having to do all that?