phaser-ce-npm-webpack-typescript-starter-project icon indicating copy to clipboard operation
phaser-ce-npm-webpack-typescript-starter-project copied to clipboard

An attempt to update all dependencies

Open j3soon opened this issue 3 years ago • 0 comments

This is an attempt to update all dependencies used by this template. The errors caused by the update are documented in detail.

  • Update all Node.js dependencies
  • Fix CleanWebpackPlugin Error
    Fix TypeError: CleanWebpackPlugin is not a constructor
    
  • Fix compiler.plugin Error by webpack-shell-plugin-next
    TypeError: compiler.plugin is not a function
    
  • Fix Dev Server watchOptions error
      Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
    - options has an unknown property 'watchOptions'. These properties are valid:
      object { allowedHosts?, bonjour?, client?, compress?, devMiddleware?, headers?, historyApiFallback?, host?, hot?, http2?, https?, ipc?, liveReload?, magicHtml?, onAfterSetupMiddleware?, onBeforeSetupMiddleware?, onListening?, open?, port?, proxy?, server?, setupExitSignals?, setupMiddlewares?, static?, watchFiles?, webSocketServer? }
    
  • Fix Dev Server inline error
      Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
    - options has an unknown property 'inline'. These properties are valid:
      object { allowedHosts?, bonjour?, client?, compress?, devMiddleware?, headers?, historyApiFallback?, host?, hot?, http2?, https?, ipc?, liveReload?, magicHtml?, onAfterSetupMiddleware?, onBeforeSetupMiddleware?, onListening?, open?, port?, proxy?, server?, setupExitSignals?, setupMiddlewares?, static?, watchFiles?, webSocketServer? }
    
  • Fix Dev Server contentBase error
      Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
     - options has an unknown property 'contentBase'. These properties are valid:
       object { allowedHosts?, bonjour?, client?, compress?, devMiddleware?, headers?, historyApiFallback?, host?, hot?, http2?, https?, ipc?, liveReload?, magicHtml?, onAfterSetupMiddleware?, onBeforeSetupMiddleware?, onListening?, open?, port?, proxy?, server?, setupExitSignals?, setupMiddlewares?, static?, watchFiles?, webSocketServer? }
    
  • Fix loader error according to the use option and the guides in expose-loader
    Error: Compiling RuleSet failed: Query arguments on 'loader' has been removed in favor of the 'options' property
    
  • Fix Webpack colors error
    [webpack-cli] Error: Unknown option '--colors'
    [webpack-cli] Run 'webpack --help' to see available commands and options
    
  • (TODO) Fix Frontend error
    The resource from “http://localhost:9000/[object%20Module]” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
    Uncaught TypeError: url.match is not a function
    

This pull request should not be merged yet, since the errors haven't been fully eliminated.

j3soon avatar Mar 08 '22 04:03 j3soon