GithubHelp home page GithubHelp logo

waldronmatt / mixpack Goto Github PK

View Code? Open in Web Editor NEW
8.0 3.0 2.0 363 KB

A mixed TypeScript/JavaScript Webpack boilerplate with Express.

Home Page: https://mixpack.netlify.app

License: MIT License

JavaScript 76.69% CSS 2.61% HTML 4.23% SCSS 7.90% TypeScript 8.57%
webpack express jest nodejs typescript javascript sass boilerplate code-splitting webpack-template

mixpack's Introduction

Hello and welcome! ๐Ÿ‘‹

I'm a senior developer optimizing forbes.com.

mixpack's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

mixpack's Issues

break

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

webpack@v5

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.