首页 > 其他分享 >vue2 nuxt打包时间超过1小时异常

vue2 nuxt打包时间超过1小时异常

时间:2024-03-18 17:55:37浏览次数:19  
标签:定时器 销毁 vue2 nuxt 打包 Nuxt

使用  npm run generate

打包时提示:

The command 'nuxt generate' finished but did not exit after 5s   ││   This is most likely not caused by a bug in Nuxt  ││   Make sure to cleanup all timers and listeners you or your                  ││   plugins/modules start.   ││   Nuxt will now force exit  ││ ││   DeprecationWarning: Starting with Nuxt version 3 this will be a fatal ││   error

一般情况是页面存在定时器没有代码销毁导致,

比如存在 setTimeout定时器,需要在 页面 destroyed 或 beforeDestroy 时销毁:  clearTimeout(this.myTempTimer)

setInterval 定时器也要销毁: clearInterval(priceInterval)

 

标签:定时器,销毁,vue2,nuxt,打包,Nuxt
From: https://www.cnblogs.com/init-007/p/18081064

相关文章

  • Jenkins+Gradle持续集成之Jenkins的安装配置自动化打包
    来源:https://www.jianshu.com/p/b6d6cd597014一、工具准备官方网站:http://jenkins-ci.org/,我的系统是win10的,所以我选择的是红色圈起的Windos版的;另外一种是war包的,下载地址:http://mirrors.jenkins-ci.org/war/latest/jenkins.war Paste_Image.png二、准备安装前提......
  • jenkins与gradle与sonar集成自动化打包代码检测
    来源:https://juejin.cn/post/6844903536061317133服务器以ubuntu操作系统,服务器上已经安装jenkins,sonar服务,并且正常启动访问。本人主要介绍gitlab,fir与sonar如何与jenkins进行集成安装gradle插件并且配置ANROID_HOME,jdk,gradle路径Jenkins->系统管理->可选插件->......
  • [npm] npm打包/运行时,报:"95% emitting CompressionPlugin ERROR Error: error:030801
    1问题描述环境信息windows10node:v20.11.1>node--versionv20.11.1vue:2.6.12[dependencies]"vue":"2.6.12""vue-count-to":"1.0.13""vue-cropper":"0.5.5""vue-meta":&q......
  • vite打包分包vue3
    //https://vitejs.dev/config///vite.config.jsexportdefaultdefineConfig({plugins:[vue(),vueJsx()],resolve:{alias:{'@':fileURLToPath(newURL('./src',import.meta.url))}},css:{preprocessorOptio......
  • java jar打包加密操作
    配置XJar加密依赖在pom.xml文件配置XJar加密依赖点击查看代码<!--反编译依赖类--><pluginRepositories><pluginRepository><id>jitpack.io</id><url>https://jitpack.io</url></pluginRepository></pluginRepo......
  • 在win10下用pyinstaller打包scrapy项目生成exe文件
    这个玩意的使用方法很简单,但是有很多坑,特别是项目稍微大一点,import引用的很多的时候,那就是打包要人命了,基本不会正常。注意有时候还需要执行pipinstall pywin32之后再进行打包。1、打包完之后,无法导入模块。譬如:你用 pyinstaller-Fentrypoint.py【只生成一个entrypoi......
  • java项目打包(maven+原生)
    一、maven打包1.1普通jarjava-jarmaven项目打包提示.jar中没有主清单属性<build><finalName>${project.artifactId}</finalName><!--修改编译出来的jar包名,仅为{artifactId}.jar--><plugins><plugin><gr......
  • PyInstaller:将你的Python代码打包成独立应用程序,让你的创意无限释放!
    https://www.bilibili.com/read/cv24488127/ 简介PyInstaller是一个用于将Python应用程序打包为独立可执行文件的工具。它可以将Python脚本转换为可以在目标机器上独立运行的可执行文件,无需事先安装Python解释器或其他依赖项。PyInstaller支持多个平台,包括Windows、Mac和Linux......
  • nodejs打包问题解决实例
    node命令集合npmsetregistryhttps://registry.npm.taobao.org/npmconfigsetregistryhttps://registry.npmjs.org/npmconfigsetsass_binary_sitehttps://npm.taobao.org/mirrors/node-sass/npmgetregistry //npm安装包的提示操作目录权限不足npmconfigsetu......
  • 【Android】使用Android Studio打包APK文件
    文章目录1.新建项目2.打包生成APK3.安装APK 1.新建项目打包APK之前,首先需要新建项目,有基础的可以跳过。无基础的可以参考:使用AndroidStudio运行HelloWorld项目2.打包生成APK1.找到Build->GenerateSignedBundleorAPK->勾选APK  2.首次需要创建......