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

Cannot use package Config with Microservice when split a service #650

Open
ltwang03 opened this issue Jul 1, 2023 · 0 comments
Open

Cannot use package Config with Microservice when split a service #650

ltwang03 opened this issue Jul 1, 2023 · 0 comments

Comments

@ltwang03
Copy link

ltwang03 commented Jul 1, 2023

Error Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema.

  • configuration has an unknown property 'exclude'. These properties are valid:
    object { amd?, bail?, cache?, context?, dependencies?, devServer?, devtool?, entry?, experiments?, extends?, externals?, externalsPresets?, externalsType?, ignoreWarnings?, infrastructureLogging?, loader?, mode?, module?, name?, node?, optimization?, output?, parallelism?, performance?, plugins?, profile?, recordsInputPath?, recordsOutputPath?, recordsPath?, resolve?, resolveLoader?, snapshot?, stats?, target?, watch?, watchOptions? }
    -> Options object as provided by the user.
    For typos: please correct them.
    For loader options: webpack >= v2.0.0 no longer allows custom properties in configuration.
    Loaders should be updated to allow passing options via loader options in module.rules.
    Until loaders are updated one can use the LoaderOptionsPlugin to pass these options to the loader:
    plugins: [
    new webpack.LoaderOptionsPlugin({
    // test: /.xxx$/, // may apply this only for some modules
    options: {
    exclude: …
    }
    })
    ]

I HAVE A PROPLEM
I split the project into services (microservices) but I can't use package Config

main.ts
Screenshot 2023-07-01 at 17 11 01

bootstrap();

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

No branches or pull requests

1 participant