logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

vue打包时报错 Error: No PostCSS Config found in 的解决方法

vue 项目打包时报了如下错误:Error: No PostCSS Config found in...没有postCss配置因此添加一个postcss.config.js文件放在根目录下postcss-loader是为了兼容css3,自动给css添加前缀的webpack插件module.exports = {plugins: {'autoprefixer': {b...

Uncaught TypeError: Cannot assign to read only property 'exports' of object

1. 错误:vue 运行时报错:Cannot assign to read only property 'exports' of object '#<Object>'2. 解决过程:搜索一些方法都是在说 webpack 同一个文件 不可以用 import 引入然后再用 module.exports 输出,只能用 export 输出weeks.jsmodule.export...

Node Sass could not find a binding for your current environment: OS X 64-bit with Node.js 14.x

因为最近升级了node,所以运行Vue项目 npm run serve 的时候报如下错误:errorin ./node_modules/vue-loading-spinner/src/components/RotateSquare5.vue?vue&type=style&index=0&id=fa2cf838&lang=scss&scoped=true&am

vue 动态生成二维码 qrcode

1.下载 qrcodenpm i qrcode2.在所需组件使用qrcode<template><div><img :src="qrcode" width="192"></div></template>>import QRCode from 'qrcode'export default{d...

文章图片
VUE报错:Uncaught SyntaxError: Unexpected token ‘<‘

报错起因将Vue 路由 设为 history 模式后打包, 首页访问没有任何问题,跳转到子路由 /apollo/search/ 也没有问题,但刷新子路由 /apollo/search/ 就会报错:Uncaught SyntaxError: Unexpected token '<'查询过程刚开始以为是 js 打包发布过程中导致的 js 缺失,重新打包发布仍然出现问题,排除此因。查询后端 ngi

#vue.js#前端#javascript
vue 返回前一个页面操作

需求描述点击返回按钮返回到前一个页面当没有前一个页面时,默认跳到首页1. 方法一此方法根据浏览器默认的历史记录操作 window.history 。但是此方法存在一个问题:当前一个页面并非本网站(为第三方)页面则会跳到第三方页面如:从 baidu.com --> https://bscproject.org/#/project/1点击返回时会跳到 baidu.com并不会跳到 https:/

vue打包后的静态文件上传到CDN,如何设置静态文件域名?

在搞资源文件全球加速时需要将 JS,CSS,IMG 等静态资源放到 CDN 服务器上,WEB 网站上引用CDN 上缓存的资源,因为网站用vue-cli 搭建的,所以需要对 vue-cli 配置文件 (vue-config-js) 进行修改,修改打包后的index.html中静态资源引用路径。vue.config.jsmodule.exports = {publicPath: process.env

前端利用 i18n 实现多语言切换

前端实现多语言切换 : 实现前端页面的资源国际化一、vue 中引用 vue-i18n 实现国际化安装 vue-i18nnpm install vue-i18n新建语言文件包: cn.js / en.js …cn.jsexport default {lang: 'cn',hello: '你好',}en.jsexport default {lang: 'en',hello: 'hello',}新建一个

vue-resource解决Provisional headers are shown问题

前情提要用 vue-resource post请求数据时一直报跨域错误:has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requeste

vue路由相对路径跳转

今天写东西遇到多层路由,路由之间跳转时需要相对路径,因此查了一下官网用到了append属性和router.resolve方法,因此列出具体的使用方法。今天写东西遇到多层路由,路由之间跳转时需要相对路径,因此查了一下官网用到了append属性和router.resolve方法,因此列出具体的使用方法。append 属性类型: boolean默认值: false设置 append 属性后...

    共 24 条
  • 1
  • 2
  • 3
  • 请选择