Comments (9)
Hi, @re2005. Yes, the issue with the render function should be fixed in v2.2.1. Just remove yarn.lock
/package.lock.json
and reinstall.
from components.
I have the same problem
from components.
I have the same problem
The name of the registered component is named PascalCase,not use kebab-case
from components.
I too have same problem, I tried PascalCase, kebab-case and path/prefix in nuxt config nothing worked.
it worked once when I tried this in nuxt.config.js
components: ["~/components"],
from components.
Temporarily fix to manually import all your global components:
import { Vue } from 'nuxt-property-decorator';
const files = require.context('../components/Globals', true, /\.vue$/);
files.keys().forEach(file => {
const componentConfig = files(file);
const componentName = file.split('/').pop().split('.')[0];
Vue.component(componentName, componentConfig.default || componentConfig);
});
Add to the plugins
plugins: [
'~/plugins/global-component-loader.js',
]
from components.
Describe the bug
Seems that the module is not working.
It runs fine on development, but when build gets an error:ERROR render function or template not defined in component: {name} 16:56:44
at Yi (node_modules/vue-server-renderer/build.prod.js:1:67000)
at oo (node_modules/vue-server-renderer/build.prod.js:1:70873)
at no (node_modules/vue-server-renderer/build.prod.js:1:70523)
at wt.to [as renderNode] (node_modules/vue-server-renderer/build.prod.js:1:67770)
at wt.next (node_modules/vue-server-renderer/build.prod.js:1:20584)
at n (node_modules/vue-server-renderer/build.prod.js:1:18796)
at node_modules/vue-server-renderer/build.prod.js:1:68881
at to (node_modules/vue-server-renderer/build.prod.js:1:68889)
at node_modules/vue-server-renderer/build.prod.js:1:70990
at eo (node_modules/vue-server-renderer/build.prod.js:1:67480)To Reproduce
Steps to reproduce the behavior:npm run build
npm startExpected behavior
Build normally and importing all components on the specified path.
are you using "@nuxt/typescript-build" in your project or <script lang="ts" in .vue file?
from components.
Hi @subodhsj yes I'm using that "@nuxt/typescript-build": "^2.1.0",
and also nuxt-property-decorator
But mind you that was all working fine just a few days ago. The latest update is exactly a few days ago as well.
from components.
Hi @subodhsj yes I'm using that
"@nuxt/typescript-build": "^2.1.0",
and alsonuxt-property-decorator
But mind you that was all working fine just a few days ago. The latest update is exactly a few days ago as well.
Thanks @re2005, My other project without @nuxt/typescript-build works fine and [email protected] works with typescript.
from components.
So @pi0 you have closed this issue, without the confirmation that by just removing @nuxt/typescript-build"
the components
module should works just fine ?
from components.
Related Issues (20)
- feat: get list of components at runtime HOT 5
- Dependency Dashboard
- Since updating from Nuxt 2.15.4 to 2.15.8, auto import components no longer work HOT 15
- Support custom resolvers HOT 1
- Problem after 2.1.8, app breaks if using lodash as plugin HOT 6
- Auto import components with nested directory cant use go to define on Visual Studio Code HOT 3
- Size after building is bigger with `components: true`
- Can a library module still import components manually? HOT 1
- Autoloading breaks when file exports multiple components at once.
- Nuxt build fails when using yarn berry plug-n-play mode
- Production build with directories marked with `isAsync: false` imports components asynchronously HOT 2
- A way to get an array of all the components that are autoloaded
- How to have typescript inference with this? HOT 1
- How to avoid nuxt-i18n error when you doing testing with Jest?
- SCSS variables not working
- Nuxt 3.0.0 support HOT 1
- Component automatically introduces the generated component name.
- Remove suffix (.component.vue)
- How to use Lazy loading component when auto imports for component is disabled? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from components.