当前位置:网站首页>NPM run dev start project error document is not defined
NPM run dev start project error document is not defined
2022-07-06 21:41:00 【hongc93】
npm run dev Start up project error document is not defined A difficult problem
background : When the interface call fails, you should give the user an error pop-up message , Give the papers request.js of use import Method is introduced separately element-ui Under the Message and Message.box Components , Report errors The screenshot is as follows :
ReferenceError: document is not defined
at Object.<anonymous> (G:\cd\node_modules\element-ui\lib\utils\dom.js:22:39)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Module._compile (G:\cd\node_modules\pirates\lib\index.js:99:24)
at Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Object.newLoader [as .js] (G:\cd\node_modules\pirates\lib\index.js:104:7)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object.<anonymous> (G:\cd\node_modules\element-ui\lib\utils\popup\popup-manager.js:9:12)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Module._compile (G:\cd\node_modules\pirates\lib\index.js:99:24)
at Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Object.newLoader [as .js] (G:\cd\node_modules\pirates\lib\index.js:104:7)
at Module.load (internal/modules/cjs/loader.js:599:32After checking bit by bit , Found other references request.js There is no problem with the interface files , Only login Interface file reference error .
All kinds of checks What's the reason ? Unsolved You know, great Xia, you can help solve your doubts , thank you
But if you just have to use pop-up components You can use the following methods
//1. First introduce `vue`
import Vue from 'vue'
//2. establish vue Example
let v = new Vue()
//3. adopt vue Instance call component
v.$message.success(' Content ')It's finally done ! Goodbye for a long time
边栏推荐
- JS学习笔记-OO创建怀疑的对象
- 3D face reconstruction: from basic knowledge to recognition / reconstruction methods!
- WEB功能测试说明
- C语言:#if、#def和#ifndef综合应用
- ACdreamoj1110(多重背包)
- JPEG2000 matlab source code implementation
- Aike AI frontier promotion (7.6)
- 14年本科毕业,转行软件测试,薪资13.5K
- [sliding window] group B of the 9th Landbridge cup provincial tournament: log statistics
- What about the spectrogram
猜你喜欢

This year, Jianzhi Tencent

【滑动窗口】第九届蓝桥杯省赛B组:日志统计

The difference between break and continue in the for loop -- break completely end the loop & continue terminate this loop

1292_FreeROS中vTaskResume()以及xTaskResumeFromISR()的实现分析

PostgreSQL 安装gis插件 CREATE EXTENSION postgis_topology

jvm:大对象在老年代的分配

Shake Sound poussera l'application indépendante de plantation d'herbe "louable", les octets ne peuvent pas oublier le petit livre rouge?

Aike AI frontier promotion (7.6)

3D face reconstruction: from basic knowledge to recognition / reconstruction methods!

ViT论文详解
随机推荐
JS operation DOM element (I) -- six ways to obtain DOM nodes
SDL2来源分析7:演出(SDL_RenderPresent())
js 根据汉字首字母排序(省份排序) 或 根据英文首字母排序——za排序 & az排序
3D人脸重建:从基础知识到识别/重建方法!
Sdl2 source analysis 7: performance (sdl_renderpresent())
强化学习-学习笔记5 | AlphaGo
SQL:存储过程和触发器~笔记
@GetMapping、@PostMapping 和 @RequestMapping详细区别附实战代码(全)
Leetcode topic [array] -118 Yang Hui triangle
缓存更新策略概览(Caching Strategies Overview)
MySQL - transaction details
Michael smashed the minority milk sign
Proxy and reverse proxy
Quick news: the flybook players' conference is held online; Wechat payment launched "education and training service toolbox"
Web开发小妙招:巧用ThreadLocal规避层层传值
Nodejs tutorial let's create your first expressjs application with typescript
[go][reprint]vscode run a HelloWorld example after configuring go
R语言做文本挖掘 Part4文本分类
PostgreSQL 修改数据库用户的密码
El table table - sortable sorting & disordered sorting when decimal and% appear