Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: fs.rmSync is not a function #95

Open
Peter-developer01 opened this issue Jun 6, 2023 · 0 comments
Open

TypeError: fs.rmSync is not a function #95

Peter-developer01 opened this issue Jun 6, 2023 · 0 comments

Comments

@Peter-developer01
Copy link

$ ./edit ru ru
[11:09:50] Using gulpfile /media/peter/368C8D4D8C8D0917/js/server/gulpfile.js
[11:09:50] Starting 'edit'...
[11:09:50] Starting 'webpack'...
[11:09:50] Starting 'engine:koa:tutorial:importWatch'...
[11:09:50] Starting 'livereload'...
[11:09:50] Starting 'server'...
(node:9386) DeprecationWarning: Tapable.plugin is deprecated. Use new API on `.hooks` instead
Livereload server listening
[11:10:06] 'webpack' errored after 16 s
[11:10:06] TypeError: fs.rmSync is not a function
    at Object.removeSync (/media/peter/368C8D4D8C8D0917/js/server/node_modules/fs-extra/lib/remove/index.js:11:6)
    at clear (/media/peter/368C8D4D8C8D0917/js/server/modules/config/webpack.js:380:15)
    at AsyncSeriesHook.eval [as callAsync] (eval at create (/media/peter/368C8D4D8C8D0917/js/server/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:5:1)
    at AsyncSeriesHook.lazyCompileHook (/media/peter/368C8D4D8C8D0917/js/server/node_modules/tapable/lib/Hook.js:154:20)
    at /media/peter/368C8D4D8C8D0917/js/server/node_modules/webpack/lib/Compiler.js:315:19
    at AsyncSeriesHook.eval [as callAsync] (eval at create (/media/peter/368C8D4D8C8D0917/js/server/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:13:1)
    at AsyncSeriesHook.lazyCompileHook (/media/peter/368C8D4D8C8D0917/js/server/node_modules/tapable/lib/Hook.js:154:20)
    at Compiler.run (/media/peter/368C8D4D8C8D0917/js/server/node_modules/webpack/lib/Compiler.js:312:24)
    at webpack (/media/peter/368C8D4D8C8D0917/js/server/node_modules/webpack/lib/webpack.js:74:12)
    at /media/peter/368C8D4D8C8D0917/js/server/tasks/webpack.js:9:5
    at new Promise (<anonymous>)
    at module.exports (/media/peter/368C8D4D8C8D0917/js/server/tasks/webpack.js:6:9)
    at /media/peter/368C8D4D8C8D0917/js/server/modules/engine/gulp/requireModuleTasks.js:12:12
    at webpack (/media/peter/368C8D4D8C8D0917/js/server/node_modules/undertaker/lib/set-task.js:13:15)
    at bound (domain.js:427:14)
    at runBound (domain.js:440:12)
[11:10:06] 'edit' errored after 16 s
08:10:06.387Z  INFO application: Boot complete

Why it errors and how can I fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant