Failed to resolve loader: less-loader
发表于|更新于
|浏览量:
但愿苍生俱饱暖,不辞辛苦出山林。一一于谦
本来我今天遇到这个问题了
1 | Failed to resolve loader: less-loader You may need to install it |
我一看:你可能需要安装一下less-loader,我直接输入命令安装
1 | cnpm i less-loader |
执行完毕,再次运行发现报错信息变了:
1 | TypeError: this.getOptions is not a function |
原来是版本太高了,于是卸载
1 | cnpm uni less-loader |
然后安装低版本的
1 | cnpm i less-loader@6.0.0 |
再次启动就好了
相关推荐
2021-12-18
layui模块入门
天才绝不应鄙视勤奋。—— 小普林尼 今天写了写layui自定义模块 12345678layui.define(['layer'], (exports) => { // 需确保您的 layui.js 是引入的构建后的版本(即官网下载或 git 平台的发行版) //直接可得到各种内置模块 var layer = layui.layer //… layer.msg('Hello World'); exports('ruben', {}); //注意,这里是模块输出的核心,模块名必须和 use 时的模块名一致}); 然后引用自己写的自定义模块 12345678910111213141516171819<!DOCTYPE html><html> <head> <meta charset="utf-8"> <title></title> <link rel="style...
2026-03-13
page-agent
只要我们能善用时间,就永远不愁时间不够用。——德国诗人歌德 Page Agent JavaScript in-page GUI agent. Control web interfaces with natural language. 他是谁:住在网页里的 GUI AgentPage Agent 有点像那种“已经在你页面里租好房子”的小助手——不是浏览器扩展那种住隔壁的,也不是 python 脚本那种在远方给你打电话的,更不是 headless browser 那种披着隐身斗篷在后台乱窜的。 他是那种会直接站在你的网页里,理一理领带,拍拍胸口说: The GUI Agent Living in Your Webpage. Control web interfaces with natural language. 你对他说一句人话,他就替你把网页界面“按按钮、填表单、点链接、做流程”这类事儿办得明明白白。 他甚至还准备了几个入口,像是在门口举牌指路: 👉 🚀 Demo👉 📖 Documentation👉 📢 Join HN Discussion...
2022-06-19
ts中枚举
现实生活喜欢对称和轻微的时间错移。——博尔赫斯《南方》 填坑,官方文档:https://www.typescriptlang.org/docs/handbook/enums.html 我新建了一个vue项目用来演示 这里代码如下: 12345678910enum Direction { Up, Down, Left, Right}console.log({ Direction });console.log({ 'Object.entries(Direction)': Object.entries(Direction) });console.log({ 'Direction[0]': Direction[0] });console.log({ 'Direction.Up': Direction.Up }); 打印结果如下: 定义一个双向绑定的值 1const count = ref(Direction.Up)...
2022-11-21
css-tricks
站在上风的人衣冠要整洁,位在任上的人言行要谨慎,这才是政治家对天下的责任。——德富芦花 分享一个网站,这个网站有很多css小技巧 https://css-tricks.com/ 比如css实现颗粒噪声 又或是对于console的使用指引,例如console.clear()清除控制台 https://css-tricks.com/a-guide-to-console-commands/
2023-06-07
image-conversion
失之毫厘,差之千里。——佚名 分享一个js图像库: https://github.com/WangYuLue/image-conversion Install12345npm i image-conversion --save# or yarn add image-conversion Include the libraryin browser: 1<script src="https://cdn.jsdelivr.net/gh/WangYuLue/image-conversion/build/conversion.js"></script> in CommonJS: 1const imageConversion = require("image-conversion"); in ES6: 1import * as imageConversion from 'image-conversion'; or 1import {compress, compressAccurat...
2021-06-19
集成wangEditor
寿命的缩短与思想的虚耗成正比。——达尔文 官方文档 wangEditor:Typescript 开发的 Web 富文本编辑器, 轻量、简洁、易用、开源免费 html里集成wangEditor非常简单 1234567<div id="div1"></div><script src="https://unpkg.com/wangeditor/dist/wangEditor.min.js"></script><script> var E = window.wangEditor; var editor = new E("#div1"); editor.create();</script> 只需要上方几行代码即可完成 如果我们需要获取富文本中的内容 使用editor.txt.html()即可

阿超
我的名字叫阿超 年龄25岁 家在北京市 职业是软件开发 每天最晚也会在八点前回家 不抽烟 酒浅尝辄止 晚上十二点上床 保证睡足八个小时 睡前写一篇博客 再做二十分钟俯卧撑暖身 然后再睡觉 基本能熟睡到天亮 像婴儿一样不留下任何疲劳和压力 就这样迎来第二天的早晨 健康检查结果也显示我很正常 我想说明我是一个不论何时都追求内心平稳的人 不拘泥于胜负 不纠结于烦恼 不树立使我夜不能寐的敌人 这就是我在这社会的生活态度
Follow Me公告
This is my Blog