GithubHelp home page GithubHelp logo

crsandeep / simple-react-full-stack Goto Github PK

View Code? Open in Web Editor NEW
1.6K 35.0 627.0 329 KB

Boilerplate to build a full stack web application using React, Node.js, Express and Webpack.

HTML 11.71% JavaScript 85.41% CSS 2.88%
react javascript nodejs express webpack full-stack

simple-react-full-stack's Introduction

simple-react-full-stack

Build Status

This is a boilerplate to build a full stack web application using React, Node.js, Express and Webpack. It is also configured with webpack-dev-server, eslint, prettier and babel.

Introduction

Create React App is a quick way to get started with React development and it requires no build configuration. But it completely hides the build config which makes it difficult to extend. It also requires some additional work to integrate it with an existing Node.js/Express backend application.

This is a simple full stack React application with a Node.js and Express backend. Client side code is written in React and the backend API is written using Express. This application is configured with Airbnb's ESLint rules and formatted through prettier.

Development mode

In the development mode, we will have 2 servers running. The front end code will be served by the webpack dev server which helps with hot and live reloading. The server side Express code will be served by a node server using nodemon which helps in automatically restarting the server whenever server side code changes.

Production mode

In the production mode, we will have only 1 server running. All the client side code will be bundled into static files using webpack and it will be served by the Node.js/Express application.

Quick Start

# Clone the repository
git clone https://github.com/crsandeep/simple-react-full-stack

# Go inside the directory
cd simple-react-full-stack

# Install dependencies
yarn (or npm install)

# Start development server
yarn dev (or npm run dev)

# Build for production
yarn build (or npm run build)

# Start production server
yarn start (or npm start)

Documentation

Folder Structure

All the source code will be inside src directory. Inside src, there is client and server directory. All the frontend code (react, css, js and any other assets) will be in client directory. Backend Node.js/Express code will be in the server directory.

Babel

Babel helps us to write code in the latest version of JavaScript. If an environment does not support certain features natively, Babel will help us to compile those features down to a supported version. It also helps us to convert JSX to Javascript.

.babelrc file is used describe the configurations required for Babel. Below is the .babelrc file which I am using.

{
    "presets": ["env", "react"]
}

Babel requires plugins to do the transformation. Presets are the set of plugins defined by Babel. Preset env allows to use babel-preset-es2015, babel-preset-es2016, and babel-preset-es2017 and it will transform them to ES5. Preset react allows us to use JSX syntax and it will transform JSX to Javascript.

ESLint

ESLint is a pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript.

.eslintrc.json file (alternatively configurations can we written in Javascript or YAML as well) is used describe the configurations required for ESLint. Below is the .eslintrc.json file which I am using.

{
  "extends": ["airbnb"],
  "env": {
    "browser": true,
    "node": true
  },
  "rules": {
    "no-console": "off",
    "comma-dangle": "off",
    "react/jsx-filename-extension": "off"
  }
}

I am using Airbnb's Javascript Style Guide which is used by many JavaScript developers worldwide. Since we are going to write both client (browser) and server side (Node.js) code, I am setting the env to browser and node. Optionally, we can override the Airbnb's configurations to suit our needs. I have turned off no-console, comma-dangle and react/jsx-filename-extension rules.

Webpack

Webpack is a module bundler. Its main purpose is to bundle JavaScript files for usage in a browser.

webpack.config.js file is used to describe the configurations required for webpack. Below is the webpack.config.js file which I am using.

const path = require("path");
const HtmlWebpackPlugin = require("html-webpack-plugin");
const CleanWebpackPlugin = require("clean-webpack-plugin");

const outputDirectory = "dist";

module.exports = {
  entry: ["babel-polyfill", "./src/client/index.js"],
  output: {
    path: path.join(__dirname, outputDirectory),
    filename: "bundle.js"
  },
  module: {
    rules: [
      {
        test: /\.js$/,
        exclude: /node_modules/,
        use: {
          loader: "babel-loader"
        }
      },
      {
        test: /\.css$/,
        use: ["style-loader", "css-loader"]
      },
      {
        test: /\.(png|woff|woff2|eot|ttf|svg)$/,
        loader: "url-loader?limit=100000"
      }
    ]
  },
  devServer: {
    port: 3000,
    open: true,
    proxy: {
      "/api": "http://localhost:8080"
    }
  },
  plugins: [
    new CleanWebpackPlugin([outputDirectory]),
    new HtmlWebpackPlugin({
      template: "./public/index.html",
      favicon: "./public/favicon.ico"
    })
  ]
};
  1. entry: entry: ./src/client/index.js is where the application starts executing and webpack starts bundling. Note: babel-polyfill is added to support async/await. Read more here.
  2. output path and filename: the target directory and the filename for the bundled output
  3. module loaders: Module loaders are transformations that are applied on the source code of a module. We pass all the js file through babel-loader to transform JSX to Javascript. CSS files are passed through css-loaders and style-loaders to load and bundle CSS files. Fonts and images are loaded through url-loader.
  4. Dev Server: Configurations for the webpack-dev-server which will be described in coming section.
  5. plugins: clean-webpack-plugin is a webpack plugin to remove the build folder(s) before building. html-webpack-plugin simplifies creation of HTML files to serve your webpack bundles. It loads the template (public/index.html) and injects the output bundle.

Webpack dev server

Webpack dev server is used along with webpack. It provides a development server that provides live reloading for the client side code. This should be used for development only.

The devServer section of webpack.config.js contains the configuration required to run webpack-dev-server which is given below.

devServer: {
    port: 3000,
    open: true,
    proxy: {
        "/api": "http://localhost:8080"
    }
}

Port specifies the Webpack dev server to listen on this particular port (3000 in this case). When open is set to true, it will automatically open the home page on startup. Proxying URLs can be useful when we have a separate API backend development server and we want to send API requests on the same domain. In our case, we have a Node.js/Express backend where we want to send the API requests to.

Nodemon

Nodemon is a utility that will monitor for any changes in the server source code and it automatically restart the server. This is used in development only.

nodemon.json file is used to describe the configurations for Nodemon. Below is the nodemon.json file which I am using.

{
  "watch": ["src/server/"]
}

Here, we tell nodemon to watch the files in the directory src/server where out server side code resides. Nodemon will restart the node server whenever a file under src/server directory is modified.

Express

Express is a web application framework for Node.js. It is used to build our backend API's.

src/server/index.js is the entry point to the server application. Below is the src/server/index.js file

const express = require("express");
const os = require("os");

const app = express();

app.use(express.static("dist"));
app.get("/api/getUsername", (req, res) =>
  res.send({ username: os.userInfo().username })
);
app.listen(8080, () => console.log("Listening on port 8080!"));

This starts a server and listens on port 8080 for connections. The app responds with {username: <username>} for requests to the URL (/api/getUsername). It is also configured to serve the static files from dist directory.

Concurrently

Concurrently is used to run multiple commands concurrently. I am using it to run the webpack dev server and the backend node server concurrently in the development environment. Below are the npm/yarn script commands used.

"client": "webpack-dev-server --mode development --devtool inline-source-map --hot",
"server": "nodemon src/server/index.js",
"dev": "concurrently \"npm run server\" \"npm run client\""

VSCode + ESLint + Prettier

VSCode is a lightweight but powerful source code editor. ESLint takes care of the code-quality. Prettier takes care of all the formatting.

Installation guide

  1. Install VSCode

  2. Install ESLint extension

  3. Install Prettier extension

  4. Modify the VSCode user settings to add below configuration

    "eslint.alwaysShowStatus": true,
    "eslint.autoFixOnSave": true,
    "editor.formatOnSave": true,
    "prettier.eslintIntegration": true

Above, we have modified editor configurations. Alternatively, this can be configured at the project level by following this article.

simple-react-full-stack's People

Contributors

andym03 avatar bohmandan avatar crsandeep avatar ernestpascual avatar greenkeeper[bot] avatar jeanlivino avatar neptunian avatar ottocho avatar richardtorres314 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

simple-react-full-stack's Issues

Electron support

Hey, I tried to make a "Electron" version of this great boilerplate but I can't find a way to make it work.
Any idea ?
PS: Sorry I don't know how to put a "discussion" or "enhancement" label on this

Build hangs in production mode

Thanks for putting this together- it helped me get up an running so fast.

I have had no problems running the development environment with webpack-dev-server and the configuration provided, but when I try to run a build in production mode, I get the success message from clean-webpack-plugin but then nothing at all. No errors, no output, no dist/. I'm not sure what I did but I have no clue why I'm not getting a bundle and html file to my output.

The only modification I made to the config was adding this:

screen shot 2018-09-19 at 7 49 45 pm

From what I read here webpack-contrib/css-loader#447 due to an error with a dependency.

Any help on where my issue could be coming from? It would be HUGELY appreciated.

Deploying to NodeIIS

This has been very helpful!

Anyone know how do you deploy to NodeIIS? I can update the config to server/index.js, but that only takes me to the API.

How do you point to client/App.js?

Action required: Greenkeeper could not be activated 🚨

🚨 You need to enable Continuous Integration on all branches of this repository. 🚨

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.

Since we didn’t receive a CI status on the greenkeeper/initial branch, it’s possible that you don’t have CI set up yet. We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.

If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/.

Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please delete the greenkeeper/initial branch in this repository, and then remove and re-add this repository to the Greenkeeper App’s white list on Github. You'll find this list on your repo or organization’s settings page, under Installed GitHub Apps.

Webpack

Hi,

First thanks for this boilerplate! It got me started with the react-full-stack.

Corrections for the Webpack config, in order client roots to be handled in the client:
output: { publicPath: '/' }
devServer: { historyApiFallback: true }

Also, I can contribute my prettier+eslint config

Also, this modification in the package:

    "client": "webpack-dev-server --hot  --color --progress --mode development -d",
    "server": "nodemon -r esm --watch src/server --inspect src/server/index.js",
    "dev": "concurrently --kill-others \"npm run server\" \"npm run client\"" 

esm enables es6 imports in node

Thanks again

Creating a build, but the API endpoints returns 404 error.

Running 'npm run dev' opens the client and server perfectly fine, but a 'npm run build', with the current webpack configuration, creates a problem. When I upload the files to a webserver, the fetch call to /api/getUsername returns a 404 Not found error.

Any suggestions as to how to fix this would be greatly appreciated. :)

Action required: Greenkeeper could not be activated 🚨

🚨 You need to enable Continuous Integration on all branches of this repository. 🚨

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.

Since we didn’t receive a CI status on the greenkeeper/initial branch, it’s possible that you don’t have CI set up yet. We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.

If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/.

Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please delete the greenkeeper/initial branch in this repository, and then remove and re-add this repository to the Greenkeeper App’s white list on Github. You'll find this list on your repo or organization’s settings page, under Installed GitHub Apps.

Express Route Not Found Proxy Not Working

Hi @crsandeep

When running dev, my routes are not proxied when attempting to access the express backend so the UI is not showing my username. I am receiving the following error:

GET http://localhost:3000/api/getUsername 404 (Not Found)

My webpack.config.js file contains:

devServer: {
    port: 3000,
    proxy: {
      '/api': 'http://localhost:8080',
      secure: false,
      historyApiFallback: true
    }
  },

And my express server is confirmed running on port 8080 and I am able to hit the /api/getUsername endpoint via Postman and receive a proper response.

My packages are up to date and adjusted code accordingly:

"devDependencies": {
    "@babel/core": "^7.4.5",
    "@babel/plugin-proposal-class-properties": "^7.4.4",
    "@babel/preset-env": "^7.4.5",
    "@babel/preset-react": "^7.0.0",
    "babel-loader": "^8.0.6",
    "concurrently": "^4.1.0",
    "css-loader": "^3.0.0",
    "html-webpack-plugin": "^3.2.0",
    "nodemon": "^1.19.1",
    "style-loader": "^0.23.1",
    "webpack": "^4.34.0",
    "webpack-cli": "^3.3.4",
    "webpack-dev-server": "^3.7.2"
  },
  "dependencies": {
    "babel-polyfill": "^6.26.0",
    "clean-webpack-plugin": "^3.0.0",
    "cors": "^2.8.5",
    "express": "^4.17.1",
    "file-loader": "^4.0.0",
    "lodash": "^4.17.11",
    "react": "^16.8.6",
    "react-dom": "^16.8.6",
    "url-loader": "^2.0.0"
  }

I would appreciate any help with this! Thank you.

flow types

Anyone interested in front and backend Flow support as part of the build? I found it a bit confusing to have to remove flow types from both front and backend files for builds.

Error occurred while trying to proxy request

Hello,

I have a project using this boilerplate and am running into this error:

[HPM] Error occurred while trying to proxy request /api/prescriptions from localhost:3000 to http://localhost:8080 (ECONNRESET) (https://nodejs.org/api/errors.html#errors_common_system_errors)

I'm not able to connect to the API from the frontend of app or from my Insomnia API client. I've tried a few different updates to the webpack config such as using https, replacing localhost with [::1], and replacing localhost with 127.0.0.1 without any success.

Do you have any familiarity with this issue?

Here's a link to the project with this issue: https://github.com/katmorris8/pillbox

Thanks for taking a look!

Cannot add route paths

For example I'm going inside server/index.js and add:

app.get('/about', (req, res) => {
  console.log('test');
});

And all I get is a "Cannot GET /about" message in the browser and nothing is shown in the server console. Does webpack overrides that or something?
If I add app.get(/api/about) it will run the console log although I'll still see the "Cannot GET /about".

How can I add get/post responses with this boilerplate?

Thanks and sorry if my questions are irrelevant.

Images

Hi.
Great project, helped me alot.
I have issues with displaying images on front end, my paths for images are something like <a href="/"><img src="/images/logo-3.png" </a> But always getting error 404 even though they exist. I added the images folder to the public folder.

An in-range update of nodemon is breaking the build 🚨

The devDependency nodemon was updated from 1.18.5 to 1.18.6.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

nodemon is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

Release Notes for v1.18.6

1.18.6 (2018-11-05)

Bug Fixes

Commits

The new version differs by 1 commits.

  • 521eb1e fix: restart on change for non-default signals (#1409) (#1430)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of react is breaking the build 🚨

There have been updates to the react monorepo:

    • The dependency react was updated from 16.6.1 to 16.6.2.
  • The dependency react-dom was updated from 16.6.1 to 16.6.2.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

This monorepo update includes releases of one or more dependencies which all belong to the react group definition.

react is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Routes

Hi.
Thanks for fixing the images, it works all good now.
For my react app, I have the following routes to display the components of sign-up and sign-in pages.

  <Switch>
              <Route exact path="/" component={Signin}/>
              <Route path="/auth/sign-in" component={Signin}/>
              <Route path="/auth/sign-up" component={Signup}/>
    </Switch>

When I run my react app as standalone (without the simple-react-full-stack repo) it works perfectly and no errors, but after implementing my own react files to the simple-react-full-stack repo, the paths (/auth/sign-up and /auth/sign-in) keep saying error 404's, what could be the issue, should it be acting like that?

Another question is, any plans for Docker deployment?

ES6 support for server-side

Hello, thanks again for this great boilerplate,
how would it be possible to allow ES6 for server-side code ?
I can't figure out how to configure babel to achieve this...

is SSR a thing which could be possible here?

Currently I am looking for a good boilerplate to work with. I am wondering if your solution is great for doing SSR stuff. As far as I can see you connect the client to the server with the /api prefix, but the routes for the frontend seems only to get rendered on client and not on server.

My last projects were always done in this way:

  • create a wildcard url for all pages
  • return with react rendered HTML to client
  • return also a payload for graphql, redux etc. for the client
  • init then react with the prebuild dom

This is how I solved the SSR stuff. Does you project provide a solution to do the SSR thing (for SEO purpose only)

Move webpack to "dependencies" from "devDependencies"

Can you please move the webpack package to "dependencies" from "devDependencies" in package.json? In production you would need webpack to bundle the react app.

Also, not sure if you would need to move any of the other packages in "devDependencies" to "dependencies", but maybe you could take a look.

Thanks!

SSR isomorphic app ? Google blank page ?

In the page server.js I noticed straight you are not generating & injecting the JSX of the app into an html page like me I do on my fresh repo

A lot of tutorials indicate how to inject stuff into an html page for search engines like Google. I wanna avoid a blank page on search engines.
Could you confirm me there won't be blank page ?

Because whatever I have many other problems with my repo I can't import ES6 stuff in the server side like .jpg .svg.
Babel does not make all this, even with @babel/register and @babel/cli

I don't care about redux injection of the initial state...

I like your code a lot 👍, one star for you while waiting for your answer.

Client can access all app files

Hi thanks for this boilerplate,
I like the structure but I noticed that I can access all files through browser (for example src/server/myPasswords.json is accessible).
How can I avoid that and make the "public" folder the only one to actually be public ?

Deploy to Heroku

Hi, I need help deploying this to heroku.
The backend works but it's not connecting to the front-end.

error on npm run build

C:\Users\RUDRA\OneDrive\Desktop\Simple-Multi-Page-Wbsite-wih-Node-main>npm run build

[email protected] build
webpack --mode production

clean-webpack-plugin: C:\Users\RUDRA\OneDrive\Desktop\Simple-Multi-Page-Wbsite-wih-Node-main\dist has been removed.
Hash: 7537dbd4ce8986eb8770
Version: webpack 4.47.0
Time: 3812ms
Built at: 18/10/2023 9:24:30 am
1 asset
Entrypoint main = bundle.js
[94] (webpack)/buildin/global.js 472 bytes {0} [built]
[133] ./src/client/react.png 14 KiB {0} [built]
[134] multi babel-polyfill ./src/client/index.js 40 bytes {0} [built]
[341] ./src/client/app.css 1.06 KiB {0} [built]
[342] ./node_modules/css-loader/dist/cjs.js!./src/client/app.css 221 bytes {0} [built]
[346] ./src/client/index.js + 1 modules 5.38 KiB {0} [built]
| ./src/client/index.js 181 bytes [built]
| ./src/client/App.js 5.19 KiB [built]
+ 341 hidden modules

ERROR in bundle.js from Terser
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:69:19)
at Object.createHash (node:crypto:133:10)
at C:\Users\RUDRA\OneDrive\Desktop\Simple-Multi-Page-Wbsite-wih-Node-main\node_modules\terser-webpack-plugin\dist\index.js:217:37
at Array.forEach ()
at TerserPlugin.optimizeFn (C:\Users\RUDRA\OneDrive\Desktop\Simple-Multi-Page-Wbsite-wih-Node-main\node_modules\terser-webpack-plugin\dist\index.js:160:259)
at AsyncSeriesHook.eval [as callAsync] (eval at create (C:\Users\RUDRA\OneDrive\Desktop\Simple-Multi-Page-Wbsite-wih-Node-main\node_modules\tapable\lib\HookCodeFactory.js:33:10), :7:1)
at AsyncSeriesHook.lazyCompileHook (C:\Users\RUDRA\OneDrive\Desktop\Simple-Multi-Page-Wbsite-wih-Node-main\node_modules\tapable\lib\Hook.js:154:20)
at C:\Users\RUDRA\OneDrive\Desktop\Simple-Multi-Page-Wbsite-wih-Node-main\node_modules\webpack\lib\Compilation.js:1409:36
at AsyncSeriesHook.eval [as callAsync] (eval at create (C:\Users\RUDRA\OneDrive\Desktop\Simple-Multi-Page-Wbsite-wih-Node-main\node_modules\tapable\lib\HookCodeFactory.js:33:10), :6:1)
at AsyncSeriesHook.lazyCompileHook (C:\Users\RUDRA\OneDrive\Desktop\Simple-Multi-Page-Wbsite-wih-Node-main\node_modules\tapable\lib\Hook.js:154:20)
at C:\Users\RUDRA\OneDrive\Desktop\Simple-Multi-Page-Wbsite-wih-Node-main\node_modules\webpack\lib\Compilation.js:1405:32
at AsyncSeriesHook.eval [as callAsync] (eval at create (C:\Users\RUDRA\OneDrive\Desktop\Simple-Multi-Page-Wbsite-wih-Node-main\node_modules\tapable\lib\HookCodeFactory.js:33:10), :6:1)
at AsyncSeriesHook.lazyCompileHook (C:\Users\RUDRA\OneDrive\Desktop\Simple-Multi-Page-Wbsite-wih-Node-main\node_modules\tapable\lib\Hook.js:154:20)
at Compilation.seal (C:\Users\RUDRA\OneDrive\Desktop\Simple-Multi-Page-Wbsite-wih-Node-main\node_modules\webpack\lib\Compilation.js:1342:27)
at C:\Users\RUDRA\OneDrive\Desktop\Simple-Multi-Page-Wbsite-wih-Node-main\node_modules\webpack\lib\Compiler.js:675:18
at C:\Users\RUDRA\OneDrive\Desktop\Simple-Multi-Page-Wbsite-wih-Node-main\node_modules\webpack\lib\Compilation.js:1261:4
at AsyncSeriesHook.eval [as callAsync] (eval at create (C:\Users\RUDRA\OneDrive\Desktop\Simple-Multi-Page-Wbsite-wih-Node-main\node_modules\tapable\lib\HookCodeFactory.js:33:10), :24:1)
at AsyncSeriesHook.lazyCompileHook (C:\Users\RUDRA\OneDrive\Desktop\Simple-Multi-Page-Wbsite-wih-Node-main\node_modules\tapable\lib\Hook.js:154:20)
at Compilation.finish (C:\Users\RUDRA\OneDrive\Desktop\Simple-Multi-Page-Wbsite-wih-Node-main\node_modules\webpack\lib\Compilation.js:1253:28)
at C:\Users\RUDRA\OneDrive\Desktop\Simple-Multi-Page-Wbsite-wih-Node-main\node_modules\webpack\lib\Compiler.js:672:17
at _done (eval at create (C:\Users\RUDRA\OneDrive\Desktop\Simple-Multi-Page-Wbsite-wih-Node-main\node_modules\tapable\lib\HookCodeFactory.js:33:10), :9:1)
at eval (eval at create (C:\Users\RUDRA\OneDrive\Desktop\Simple-Multi-Page-Wbsite-wih-Node-main\node_modules\tapable\lib\HookCodeFactory.js:33:10), :32:22)
at C:\Users\RUDRA\OneDrive\Desktop\Simple-Multi-Page-Wbsite-wih-Node-main\node_modules\webpack\lib\Compilation.js:1185:12
at C:\Users\RUDRA\OneDrive\Desktop\Simple-Multi-Page-Wbsite-wih-Node-main\node_modules\webpack\lib\Compilation.js:1097:9
at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
Child html-webpack-plugin for "index.html":
1 asset
Entrypoint undefined = index.html
[0] ./node_modules/html-webpack-plugin/lib/loader.js!./public/index.html 497 bytes {0} [built]
[2] (webpack)/buildin/global.js 472 bytes {0} [built]
[3] (webpack)/buildin/module.js 497 bytes {0} [built]
+ 1 hidden module

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.