当我尝试在我的nuxt 3应用程序中呈现这个字体很棒的组件时,我得到了下面的错误,所有npm安装都是正确的,并且不能在没有任何错误的情况下获得应用中的图标。
at WeakMap.set (<anonymous>)
at normalizePropsOptions (./node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:3966:11)
at createComponentInstance (./node_modules/@vue/runtime-core/dist/runtime-core.cjs.
在执行npm run generate时,我在/dist文件夹中看到的是一个200.html和一个_nuxt文件夹,以及一堆其他文件:没有index.html,也没有用于我的about路由的/about文件夹。
所以Nuxt没有生成我的静态路由,应用程序也无法工作。
这里我漏掉了什么?
router.js
import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)
export function createRouter () {
return new Router({
为了缩小我的tailwindCSS,我尝试在我的package.json中创建一个脚本: "tw:prod":"NODE_ENV=production npx tailwindcss-cli@latest build ./src/css/tailwind.css -o ./public/css/tailwind.css", 但是它给出了这个错误: > 'NODE_ENV' is not recognized as an internal or external command,
> operable program or batch
当我尝试在Heroku上发布我的NUXT应用程序时,我得到了这个错误
服务器错误应用程序中发生错误,无法提供您的页面。如果您是应用程序所有者,请查看您的日志以了解详细信息。
在本地运行的应用程序Fine Everything工作。
这是构建日志
Building on the Heroku-20 stack
remote: -----> Determining which buildpack to use for this app
remote: -----> Node.js app detected
remote:
remote: -----> Creating runti
我试图在Firebase上托管一个Nuxt.js应用程序,我跟踪了这个,当我尝试做sudo firebase serve --only functions, hosting时,我被困在了#10上。我一直拿着这个Timed out waiting for function to respond.。
经过进一步研究,我发现问题出现在/function/index.js中。nuxt.renderRoute('/').then(...)行需要花费很长时间才能运行,因为console.log('After render')从未被调用过。下面是/function/index