Closed donni106 closed 3 years ago
Did you add this package to frontend app ? yarn add nuxt-typo3-headless-news
Yes
There is a nuxt-typo3-headless-news
file in the .nuxt
folder. In this file, the problematic code is included with the bad path. When I comment out everything, our app works.
// import Vue from "vue";
// import CeNews_pi1 from "nuxt-typo3-headless-news/Resources/Private/News/Templates/Vue/CeNews_pi1";
// export default () => {
// Vue.component("CeNews_pi1", CeNews_pi1);
// };
Do I need that file/content? Or is this more like an example file, how to initially being able to use headless news?
How can I force to not create that file in .nuxt
?
With investing more, it seems like that our setup cannot find the .vue
file in nuxt-typo3-headless-news/Resources/Private/News/Templates/Vue/
. With trying to autocomplete the path, only .js
files were proposed.
I also deleted node_modules and npm cache and reinstalled everything.
Wow, it seems to work, when adding .vue
to the import from:
import Vue from "vue";
import CeNews_pi1 from "nuxt-typo3-headless-news/Resources/Private/News/Templates/Vue/CeNews_pi1.vue";
export default () => {
Vue.component("CeNews_pi1", CeNews_pi1);
};
I will setup a PR for this! Or is there any other solution @mercs600?
This error occurs when starting the nuxt server and visiting http://localhost:3000/:
Without
nuxt-typo3-headless-news
in the modules everything works fine. Any idea?