Giter Site home page Giter Site logo

hapi-webpack-plugin-2's People

Contributors

kamahl19 avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

wave-dds

hapi-webpack-plugin-2's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • Update dependency @types/webpack-dev-middleware to v2.0.7
  • Update dependency webpack-dev-middleware to v3.7.3
  • Update dependency webpack-hot-middleware to v2.25.3 (webpack-hot-middleware, @types/webpack-hot-middleware)
  • Update dependency @types/jest to v24.9.1
  • Update dependency husky to v3.1.0
  • Update dependency prettier to v1.19.1
  • Update dependency tslib to v1.14.1
  • Update dependency typescript to v3.9.10
  • Update dependency webpack to v4.46.0
  • Update dependency @types/webpack-dev-middleware to v5
  • Update dependency typescript to v5
  • Update dependency webpack-dev-middleware to v6
  • ๐Ÿ” Create all rate-limited PRs at once ๐Ÿ”

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

npm
package.json
  • webpack-dev-middleware ^3.7.0
  • webpack-hot-middleware ^2.25.0
  • @types/connect ^3.4.32
  • @types/hapi__hapi ^18.2.5
  • @types/jest ^24.0.15
  • @types/webpack-dev-middleware ^2.0.3
  • @types/webpack-hot-middleware ^2.16.5
  • husky ^3.0.0
  • prettier ^1.18.2
  • pretty-quick ^1.11.1
  • tsdx ^0.6.1
  • tslib ^1.10.0
  • typescript ^3.5.3
  • webpack ^4.35.3
  • @hapi/hapi *
  • webpack *

  • Check this box to trigger a request for Renovate to run again on this repository

TypeError on property 'Name' of undefined

Thank you for the plugin and hard work.

When trying to follow exactly your exemple 'With config object' (will also happen when using the 'With configPath'), I went on and putted the server.register into a try/catch and the following error is triggered whatever I try :
TypeError: Cannot read property 'name' of undefined

This doesn't happen with other plugins or so. Do you know what I couold have done wrong ?
The trace doesn't give me much help at all :

Trace: Error when Linking Webpack ======= TypeError: Cannot read property 'name' of undefined
at start (C:\Users\name\IDEFolder\projectName\server\server.js:57:11)
at
at runMicrotasksCallback (internal/process/next_tick.js:122:5)
at _combinedTickCallback (internal/process/next_tick.js:132:7)
at process._tickCallback (internal/process/next_tick.js:181:9)
at Function.Module.runMain (module.js:696:11)
at startup (bootstrap_node.js:204:16)
at bootstrap_node.js:625:3

Line 57 correspond to the catch error console.trace(error).

Here is an idea of the code

try {
		server.register({
  plugin: require('hapi-webpack-plugin-2'),
  options: {
    config: {
      compiler: webpack({
        // webpack options http://webpack.github.io
      }),
      assets: {
        // webpack-dev-middleware options https://github.com/webpack/webpack-dev-middleware
      },
      hot: {
        // webpack-hot-middleware options https://github.com/glenjamin/webpack-hot-middleware
      },
    },
  },
});

	} catch (errorWhenLinkingWebpack) {
		console.trace("Error when Linking Webpack ======= " + errorWhenLinkingWebpack)
	}

Any idea ? It feels to me like hapi.register can't have access to the plugin created and its name... I might be wrong though.

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.