【ReactJS 初体验】Module build failed: TypeError: fileSystem.statSync is not a function
来源:互联网 发布:软件的demo片 编辑:程序博客网 时间:2024/06/05 20:17
一直跟着视频学习,有现成到代码,今天突然间删除来node_modules 目录之后,执行 cnpm install 之后,然后执行webpack –watch 之后如下到错误:
经过尝试发现是webpack版本不一致导致,注意编译项目到webpack到版本,最好使用同一个版本。
还是对npm,webpack使用不熟。
cnpm install --save-dev babel-core babel-loader babel-preset-es2015 babel-preset-reactcnpm install --save-dev react react-dom --save-devcnpm install babel-loader --save-dev cnpm install -g webpack --save-dev
到网上一搜发现StackOverflow上说来一顿,其实即使编译到过程有问题。
记录一下
阅读全文
0 0
- 【ReactJS 初体验】Module build failed: TypeError: fileSystem.statSync is not a function
- Module build failed: TypeError: this._init is not a function
- 使用vue时Module build failed: TypeError: this._init is not a function错误的解决方法
- typeError: form.submit is not a function
- Uncaught TypeError: undefined is not a function
- Uncaught TypeError: string is not a function
- TypeError: e[h] is not a function
- Uncaught TypeError: object is not a function
- TypeError: jQuery(...).validationEngine is not a function
- TypeError: $(...).ajaxSubmit is not a function
- Uncaught TypeError: undefined is not a function
- Uncaught TypeError: undefined is not a function
- Uncaught TypeError: object is not a function
- Uncaught TypeError: boolean is not a function
- Uncaught TypeError: $(...).appendChild is not a function
- TypeError: Buffer.allocUnsafe is not a function
- typeError: $(...).ajaxSubmit is not a function
- jquery TypeError: $.widget is not a function
- [LeetCode]740. Delete and Earn
- 搜索页面跳转到商品列表的方法
- fastclick的使用
- CUDA学习笔记(5) 原子操作
- Git 实际操作之一
- 【ReactJS 初体验】Module build failed: TypeError: fileSystem.statSync is not a function
- 猴子分桃问题
- CSS3选择器的应用
- linux内核的I2C子系统详解4——i2c-s3c2410.c文件中的adapter、algorithm
- 【目标检测】YOLO: You Only Look Once
- 机房收费系统——测试计划
- Android 神经网络API 介绍
- Java并发编程札记-(四)JUC锁-09CyclicBarrier
- 配置环境变量没反应,无效果