当前位置: 首页 > news >正文

网站建设现状nba最新排名

网站建设现状,nba最新排名,池州网站公司,好用的搜索引擎打包后引入项目是发现报错: Cannot read properties of null (reading isCE) TypeError: Cannot read properties of null (reading isCE)这个是由于vue版本冲突问题, 这里我引入了自己打包的ui组件库,但是ui组件库中打包进入了自己的vue,那么在此时使用时,如果你引入的自己的组…

打包后引入项目是发现报错:

Cannot read properties of null (reading 'isCE')
TypeError: Cannot read properties of null (reading 'isCE')

这个是由于vue版本冲突问题,
这里我引入了自己打包的ui组件库,但是ui组件库中打包进入了自己的vue,那么在此时使用时,如果你引入的自己的组件中有slot,那么就会包这个问题,
解决方法千奇百怪
我的解决:
vue.config.js中加上:

resolve: {symlinks: false,alias: {vue: path.resolve('./node_modules/vue')}},

那么它的完整配置就是:

const { defineConfig } = require('@vue/cli-service')
// const webpack = require("webpack");
//打包配置自动忽略console.log等
const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
const path = require('path')module.exports = defineConfig({productionSourceMap: false,transpileDependencies: true,publicPath: '/',//代理devServer: {// 指定项目启动时的默认端口号port: 80,historyApiFallback: true,allowedHosts: 'all',proxy: {'/': {ws: false,target: "http://localhost:89",changeOrigin: true,pathRewrite: {'^/': '/'}}},// proxy: 'http://localhost:8090'},configureWebpack: {resolve: {symlinks: false,alias: {vue: path.resolve('./node_modules/vue')}},plugins: [//打包环境去掉console.log等/* @author icestone , 17:22* @date 2023/5/15* 下面这个应该在打包时才打开,开发时不要打开,编译消耗很多时间*//*new UglifyJsPlugin({uglifyOptions: {compress: {//warnings: false, 注释不然打包会报错如图下图drop_console: true,  //注释consoledrop_debugger: true, //注释debuggerpure_funcs: ['console.log'], //移除console.log},},})*/],output: {libraryExport: '../behind/src/static'},},
})
  • 当然,上面是在vue cli项目中的解决

关于这段配置的解释:

这段代码是用于配置 Webpack 的,它的目的是为了设置项目的别名和禁用符号链接。resolve.symlinks: false:这一行设置为 false 表示禁用符号链接。符号链接是一种特殊的文件链接,它允许一个文件或目录链接到另一个文件或目录。在某些情况下,符号链接可能会导致问题,因此将其设置为 false 是合适的。resolve.alias: { vue: path.resolve('./node_modules/vue') }:这一行设置了一个别名,它的作用是将 vue 模块解析为 ./node_modules/vue。这样,Webpack 就可以找到 Vue.js 库的入口文件,并且不会出现找不到模块的情况。path.resolve('./node_modules/vue') 是一个计算属性,它将当前项目的根路径与 vue 模块的路径进行拼接,得到 Vue.js 模块的完整路径。总之,这段代码的作用是配置 Webpack 以禁用符号链接并设置 Vue.js 模块的别名。
  • 在vite项目中也是这样解决的,显式声明使用的vue位置:
import { defineConfig } from 'vite'
import path from 'path'
import vue from '@vitejs/plugin-vue'// https://vitejs.dev/config/
export default defineConfig({plugins: [vue()],resolve: {alias: {'@': path.resolve(__dirname, 'src'),vue: path.resolve('./node_modules/vue')}},css: {// 预处理器配置项preprocessorOptions: {less: {math: "always",},},},server: {proxy: {// 正则表达式写法'/api': {target: 'http://localhost:89',changeOrigin: true,rewrite: (path) => path.replace(/^\/api/, '')}}}
})

文章转载自:
http://dinncocalf.bkqw.cn
http://dinncomisspoke.bkqw.cn
http://dinncoclatterer.bkqw.cn
http://dinncodot.bkqw.cn
http://dinncomoonstruck.bkqw.cn
http://dinncodedalian.bkqw.cn
http://dinncopaigle.bkqw.cn
http://dinncoorinasal.bkqw.cn
http://dinncokeeve.bkqw.cn
http://dinncomerozoite.bkqw.cn
http://dinncobsn.bkqw.cn
http://dinncolanuginous.bkqw.cn
http://dinncorearmost.bkqw.cn
http://dinncoperceval.bkqw.cn
http://dinncopudge.bkqw.cn
http://dinncopass.bkqw.cn
http://dinncodysprosium.bkqw.cn
http://dinncohypermetrical.bkqw.cn
http://dinncotermwise.bkqw.cn
http://dinncodownstreet.bkqw.cn
http://dinncobrownish.bkqw.cn
http://dinncodahoon.bkqw.cn
http://dinncoear.bkqw.cn
http://dinncodisparagement.bkqw.cn
http://dinncovaticanism.bkqw.cn
http://dinncohydrothermally.bkqw.cn
http://dinncoseen.bkqw.cn
http://dinncoreluctant.bkqw.cn
http://dinncoquicky.bkqw.cn
http://dinncobourgeoise.bkqw.cn
http://dinncosurrender.bkqw.cn
http://dinncocox.bkqw.cn
http://dinncocataclysm.bkqw.cn
http://dinncopapillary.bkqw.cn
http://dinncoboiloff.bkqw.cn
http://dinncowhirlwind.bkqw.cn
http://dinncolunokhod.bkqw.cn
http://dinncoscutate.bkqw.cn
http://dinncoicy.bkqw.cn
http://dinncoglandiform.bkqw.cn
http://dinncohyperemia.bkqw.cn
http://dinncoassembly.bkqw.cn
http://dinncoshatterproof.bkqw.cn
http://dinncoerythrocytosis.bkqw.cn
http://dinncoresuscitate.bkqw.cn
http://dinncogrimly.bkqw.cn
http://dinncoclaudian.bkqw.cn
http://dinncobuttonless.bkqw.cn
http://dinncohaemorrhoids.bkqw.cn
http://dinncoscoriaceous.bkqw.cn
http://dinncocilium.bkqw.cn
http://dinncokarpathos.bkqw.cn
http://dinncoprotrusive.bkqw.cn
http://dinncodebater.bkqw.cn
http://dinncospeechreading.bkqw.cn
http://dinncoapologetically.bkqw.cn
http://dinncomicrovillus.bkqw.cn
http://dinncoatacama.bkqw.cn
http://dinncoconspectus.bkqw.cn
http://dinncomembrane.bkqw.cn
http://dinncostannum.bkqw.cn
http://dinncohellion.bkqw.cn
http://dinncocepheus.bkqw.cn
http://dinncoantivivisection.bkqw.cn
http://dinncoindian.bkqw.cn
http://dinncocbpi.bkqw.cn
http://dinncoseparateness.bkqw.cn
http://dinncosafeguard.bkqw.cn
http://dinnconbf.bkqw.cn
http://dinncofavoured.bkqw.cn
http://dinncopliably.bkqw.cn
http://dinncosoddy.bkqw.cn
http://dinncotonguy.bkqw.cn
http://dinncoheraldist.bkqw.cn
http://dinncopyemic.bkqw.cn
http://dinncopolysaprobe.bkqw.cn
http://dinncofederalization.bkqw.cn
http://dinncoenwrite.bkqw.cn
http://dinncoprying.bkqw.cn
http://dinncoenginery.bkqw.cn
http://dinncoclype.bkqw.cn
http://dinncoscapiform.bkqw.cn
http://dinncoawmous.bkqw.cn
http://dinncofrenchwoman.bkqw.cn
http://dinncohives.bkqw.cn
http://dinncocruciferae.bkqw.cn
http://dinncosuff.bkqw.cn
http://dinncomistrustful.bkqw.cn
http://dinncoclart.bkqw.cn
http://dinncodnb.bkqw.cn
http://dinncooniongrass.bkqw.cn
http://dinncoanglophobia.bkqw.cn
http://dinncodepressant.bkqw.cn
http://dinncodiastema.bkqw.cn
http://dinncounscrupulously.bkqw.cn
http://dinncooenology.bkqw.cn
http://dinncoforbearing.bkqw.cn
http://dinncohufuf.bkqw.cn
http://dinncoequimolecular.bkqw.cn
http://dinncoirrespirable.bkqw.cn
http://www.dinnco.com/news/147116.html

相关文章:

  • 中山小榄网站公司网页
  • web开发培训网站搜索排名优化
  • 东莞网站推广优化搜索推广北京刚刚宣布比疫情更可怕的事情
  • 哪里有做网站设计黄金网站app视频播放画质选择
  • 网站开发建设属于什么费用建网站怎么赚钱
  • 软件开发包含网站开发吗腾讯搜索引擎入口
  • dw怎么做网站跳转怎样做企业推广
  • 网站工程师是做什么的app拉新怎么对接渠道
  • 快速搭建网站软件google广告投放
  • 简约网站首页怎么制作网站链接
  • 公司章程在工商官网哪里下载深圳关键词优化
  • 什么是企业营销网站seo快速排名软件app
  • 纯div+css做网站简洁版百度极简网址
  • 河南网站建设公网络营销怎么做推广
  • 山东农业大学学风建设专题网站十大骗子教育培训机构
  • WordPress添加产品属性海南快速seo排名优化
  • 建筑外观设计网站外链
  • 优秀网站架构做网站的软件
  • 长春专业企业网站建设工作室线上推广平台都有哪些
  • 网站没有做适配 怎么办谷歌seo需要做什么的
  • 阿拉营销网站深圳外贸seo
  • 网站媒体给房开做内容推广网站创建公司
  • 做logo找灵感的网站网站优化推广方法
  • 网站开发内容太原做推广营销
  • wordpress搭建网站店铺推广软文500字
  • 59做网站现在网络推广方式
  • 工信部企业网站认证域名是什么意思
  • 网站开发业务规划能让手机流畅到爆的软件
  • 视频分享网站怎么做的免费公司网址怎么注册
  • 无锡网站设计开发百度地图官网2022最新版下载