I am getting error while starting webpack dev server over nodejs fastify

I am getting error while starting webpack dev server over nodejs fastify


0

command:
"build": "webpack –config ./webpack.development.js"
"start": "fastify start -l debug –options dist/bundle.js",

error:

AvvioError [Error]: Plugin must be a function or a promise. Received: 'object'
at assertPlugin (C:\Local\Work\Digital\yettel\DEV\GIT\yettel-webpack\node_modules\avvio\boot.js:207:11)
at Boot._addPlugin (C:\Local\Work\Digital\yettel\DEV\GIT\yettel-webpack\node_modules\avvio\boot.js:240:12)
at Boot.use (C:\Local\Work\Digital\yettel\DEV\GIT\yettel-webpack\node_modules\avvio\boot.js:216:25)
at Object.server.<computed> [as register] (C:\Local\Work\Digital\yettel\DEV\GIT\yettel-webpack\node_modules\avvio\boot.js:40:14)
at runFastify (C:\Local\Work\Digital\yettel\DEV\GIT\yettel-webpack\node_modules\fastify-cli\start.js:149:17) {
code: 'AVV_ERR_PLUGIN_NOT_VALID'
}

also how can i debug the fastify autoload plugin?

tried to debug setting fastify start command -l option didnt work..
expectation is to start application successfully with one bundle.js file and serve graphql apollo playground

New contributor

Bascil Bitam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.


Load 7 more related questions


Show fewer related questions

0



Leave a Reply

Your email address will not be published. Required fields are marked *