Closed
Description
Steps to reproduce
- Create a new rails 6.1.4.1 project :
rails new <project name> -d=postgresql
. - Run
./bin/webpack-dev-server
.
The command moved into a separate package: @webpack-cli/serve
Would you like to install serve? (That will run yarn add -D @webpack-cli/serve) (yes/NO) : yes
- An error is thrown.
TypeError: Class constructor ServeCommand cannot be invoked without 'new'
at runWhenInstalled (/home/user/app/node_modules/webpack-cli/bin/utils/prompt-command.js:46:9)
at /home/user/app/node_modules/webpack-cli/bin/utils/prompt-command.js:124:15
at processTicksAndRejections (internal/process/task_queues.js:95:5)
Expected behavior
Webpack dev server running correctly without error.
Actual behavior
./bin/webpack-dev-server
output:
home/user/app/node_modules/webpack-cli/bin/utils/prompt-command.js:46
return func(...args);
^
TypeError: Class constructor ServeCommand cannot be invoked without 'new'
at runWhenInstalled (/home/user/app//node_modules/webpack-cli/bin/utils/prompt-command.js:46:9)
at promptForInstallation (/home/user/app/node_modules/webpack-cli/bin/utils/prompt-command.js:140:10)
at /home/user/app/node_modules/webpack-cli/bin/cli.js:32:43
at Object.<anonymous> (/home/user/app/node_modules/webpack-cli/bin/cli.js:366:3)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:14)
at Module.require (internal/modules/cjs/loader.js:974:19)
at require (internal/modules/cjs/helpers.js:92:18)
System configuration
Rails version: 6.1.4.1
Ruby version: 3.0.2
Metadata
Metadata
Assignees
Labels
No labels