Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An attempt to update all dependencies #100

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

j3soon
Copy link
Contributor

@j3soon j3soon commented Mar 8, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant