PDA

View Full Version : I get the error "port is not defined" when updating webpack config



Celestial
12 Oct 2018, 6:40 AM
I have an existing app, created via `npm create-react-app`. I then followed the directions found here:
https://docs.sencha.com/extreact/6.6.0/guides/using_create_react_app.html#using_create_react_app_-_3__add_ext_react_webpack_plugin_to_webpack_config_files

The directions have me update plugins with this entry:


new HtmlWebpackPlugin({
template: 'index.html',
hash: true
}),
new ExtReactWebpackPlugin({
port:port,
})


But there is no variable "port" defined above, and the app fails to build.

Where and how should "port" be defined?

Thanks!

Forum_Adm
17 Oct 2018, 12:40 PM
Hello! I have sent this over to support to look into. They will reach out to you shortly. I appreciate your patience!

Thanks,
Michele