I'm a senior developer optimizing forbes.com.
waldronmatt / mixpack Goto Github PK
View Code? Open in Web Editor NEWA mixed TypeScript/JavaScript Webpack boilerplate with Express.
Home Page: https://mixpack.netlify.app
License: MIT License
A mixed TypeScript/JavaScript Webpack boilerplate with Express.
Home Page: https://mixpack.netlify.app
License: MIT License
I'm a senior developer optimizing forbes.com.
Hi
I installed your repo using "npm install --legacy-peer-deps" as without the latter it would break.
It gave an error: "Cannot find module 'prettier' " so I commented out the tslinter lines in webpack.dev.js
//new ESLintPlugin({ extensions: ['js', 'ts'],}),
//new StylelintPlugin(),
I followed your instructions for the backend and created a npm script as suggested in package.json as follows:
""backend": "nodemon --delay 1500ms ./server-dev.js & webpack serve --mode development --config ./scripts/webpack.dev.js"
after adding the proxy it works on port 3000
however there is a new error when running the backend script:
/data/webapps/mixpack/scripts/paths.js:1
import path from 'path';
^^^^^^
SyntaxError: Cannot use import statement outside a module
Is this due to confusion over a folder path having the same name as a module?
After the "Complete!" message it hangs as I would have expected the message that the server is running on port number xyz
I spent days trying to get a webpack 5 site up and runing (with express, pug, routing etc) and tumbled upon expack and then on to yours and it's the best I have seen so far :)
fyi, I created a fresh repo with the same name on my github in case this makes it easier for you to verify my setup.
cheers, Alfred
Upgrading to Webpack@v5 causes several breaking changes:
Major:
Minor:
Resolution: Will continue to monitor updates on the issues above. However, webpack-hot-middleware does not seem to be actively maintained. May implement alternatives such as webpack-dev-server for development.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.