// webpack.config.js
var webpack = require('webpack');
var config = {
entry: "./app/index.js",
resolve: {
extensions: ['.ts', '.js']
},
output: {
path: __dirname + '/dist', // `dist` is the destination
filename: 'bundle.js',
},
};
module.exports = config;
Need to run Webpack-dev-server.
Getting the below error whenever i try to run webpack-dev-server:
ERROR in multi ../node_modules/webpack-dev-server/client?http://localhost:8080 ./app/index.js
Module not found: Error: Can't resolve './app/index.js' in '/home/dinesh/Shopify_Test_New/shopify_app/bin'
@ multi ../node_modules/webpack-dev-server/client?http://localhost:8080 ./app/index.js
It is closing an issue like this with out any kind of clue on how to fix it that makes developing in js such a pain when it comes to tooling. After an hour of try and error I ended up uninstalling webpack-dev-server and settled with the live server plugin.. A shame though.
Yeah tried --host 0.0.0.0 and this error comes up.
It is literally the first thing you want to do... dev on a VM or other box and access the app in a browser not on localhost... and there seem to be NO sane answer for this.
It is like building a car with no doors. Insane.