https://github.com/jprichardson/node-fs-extra 这个模块在egg里用不了,
How To ReproduceSteps to reproduce the behavior:
-
一旦添加红框中的代码,运行dev,直接报错

-
去掉红框里的代码,运行dev,就ok正常。
-
package.json
{ "private": true, "version": "1.5.1", "description": "Preview glTF models using three.js and a drag-and-drop interface.", "author": "Don McCurdy <dm@donmccurdy.com> (https://www.donmccurdy.com)", "license": "MIT", "main": "public/app.js", "proxy": "http://127.0.0.1:801", "targets": { "main": { "engines": { "browsers": [ "> 1%", "not dead" ] } } }, "staticFiles": { "staticPath": [ { "staticPath": "assets", "staticOutDir": "assets" } ] }, "scripts": { "build": "parcel public index.html --public-url . --out-dir public", "build:registry": "curl https://rawgit.com/KhronosGroup/glTF-Generator-Registry/master/registry.json -o lib/gltf-generator-registry.json", "dev": "parcel index.html --port 3000", "test": "node scripts/gen_test.js", "deploy": "npm run build && vercel --local-config vercel.json --prod", "postversion": "git push && git push --tags" }, "dependencies": { "axios": "^0.21.1", "can": "^6.6.1", "dat.gui": "^0.7.7", "glob-to-regexp": "^0.4.1", "glsl-blend-soft-light": "^1.0.5", "glsl-film-grain": "^1.0.4", "gltf-validator": "^2.0.0-dev.3.3", "handlebars": "^4.7.6", "jquery": "^3.6.0", "query-string": "^7.0.0", "simple-dropzone": "^0.8.1", "three": "^0.129.0" }, "devDependencies": { "glslify-bundle": "^5.1.1", "glslify-deps": "^1.3.2", "node-fetch": "^2.6.1", "parcel-bundler": "^1.12.4", "parcel-plugin-static-files-copy": "^2.5.0" } }
Expected behavior 1. 2.
Context- Node Version: v14.15.0
- Egg Version: ^2.15.1
- Plugin Name: node-fs-extra
- Plugin Version: ^10.0.0
- Platform: win10