Closed SebbeJohansson closed 1 year ago
Hi @SebbeJohansson, thanks for reporting this issue. This is actually the expected behavior. This error occurs because the legacy fieldtype-wrapper.js
script is still present in the field plugin's document. This script fails because it expects a Vue 2 component in a certain global variable. We plan to remove this script from the document, which will make the error vanish. Nevertheless, I will keep this issue open until we have addressed that issue.
@johannes-lindgren Aaaah okay interesting! Might be worth it to add that to the documentation so that its more clear. Not sure if this issue is clear enough. 🤔
@SebbeJohansson I have merged pull request #140 that replaces the error you've spotted with a different error that should be more clear. There will still be an error in the console, but it should be clear that the app is fully functional:
That is the best we can do at the moment. I will still keep this ticket open until we have a permanent solution.
Looks good! Thanks!
fixed by #140
Describe the bug When trying to run a vue3 plugin, it results in an error.
To Reproduce Steps to reproduce the behavior:
npx @storyblok/field-plugin-cli@alpha
cd {what-ever-you-named-it}
yarn build
Expected behavior I expect no errors.
Screenshots
Desktop (please complete the following information):
Additional context I have no idea if this actually causes it to not work properly, or if its just an error with no affect.