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
Netlify CMS dashboard won't work if vue()
is added after NetlifyCMS()
in astro.config.mjs
#34
Comments
Huh! So there’s now a problem with both orders, correct? |
Correct. Vue first would lead to unrendering components on my pages. Vue last would make NetlifyCMS inaccessible |
Well that’s annoying! Would you mind sharing the specific error messages you get in each case? It does seem like it might be specific to this integration as the Kitchen Sink example combining Vue & React (and others) seems to be working fine: https://astro.new/framework-multiple?on=stackblitz |
In my case I get a 404 error on loading a index.somethingsomething.js script while going to my adminPath. It wasn't reproducible on local env but in production. I'm sorry for limited info here. I was focused about "fixing" this quirk (let my vue components unrendered for now) rather than documenting it. |
Small update: I tried a basic new project with this integration and the Vue integration and could reproduce the problem if |
Interesting. I think that MIME type error is actually just because of the 404 in the first line there. The page is requesting a |
I'm currently experiencing some issues and I don't know why I can't make a minimal example. I'll try to get around on this |
Here we go: https://github.com/Marocco2/vue-bug Please build & run via |
Oh yeah — I can see that the |
Not sure if I should start a new issue but it also break after installing |
That sounds like something else @cekerholic — mind opening a new issue and including a reproduction repo? |
@delucis did you have any clue about what is causing this? |
Hey @Marocco2! Was actually just testing it with v0.5.0 and seems like it maybe works. Do you want to try upgrading? |
My bad — seems to still be the case. It was working in dev but not after running |
Not sure what’s going on. I’ve tried to narrow things down with a more minimal reproduction: https://stackblitz.com/edit/github-bp8q9j?file=astro.config.mjs In this minimal set-up, moving
But moving |
I've tried upgrading: didn't work |
Update: tracked it down kind of. If you comment out the export default defineConfig({
integrations: [NetlifyCMS({
disableIdentityWidgetInjection: true,
adminPath: '/backyard',
previewStyles: [
// Path to a local CSS file, relative to your project’s root directory
// 'src/styles/blog.css',
// 'src/styles/preview.css',
],
// ...
],
// ...
}); Need to understand why, but this should at least get us closer! (And is a quick fix for now even if you lose preview styling.) Edit: And I can reproduce this in a minimal project so definitely an issue with |
That's... more weirder than expected. Man, this is giving me some PTSD 😂 Gonna check on my end if it would solve the issue |
I can confirm it's due to |
I suspect there is a bug here:
|
Closing because version bumps have fixed it |
Kinda follow up of #18 , this time if I move
vue()
like this:Instead of this:
like title, NetlifyCMS won't show up
The text was updated successfully, but these errors were encountered: