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

unrecognized property 'webpackConfig' #75

Open
mikeumus opened this issue Jan 3, 2023 · 0 comments
Open

unrecognized property 'webpackConfig' #75

mikeumus opened this issue Jan 3, 2023 · 0 comments

Comments

@mikeumus
Copy link

mikeumus commented Jan 3, 2023

npx serverless invoke -f hello -d '{"hello":"world"}'

> $ npx serverless invoke -f hello -d '{"hello":"world"}'                                    ⬡ 18.12.1 
Warning: You're relying on provider "cloudflare" defined by a plugin which doesn't provide a validation schema for its config.
Please report the issue at its bug tracker linking: https://www.serverless.com/framework/docs/providers/aws/guide/plugins#extending-validation-schema
You may turn off this message with "configValidationMode: off" setting


Warning: Invalid configuration encountered
  at root: unrecognized property 'webpackConfig'

Learn more about configuration validation here: http://slss.io/configuration-validation
Environment: darwin, node 18.12.1, framework 3.25.1, plugin 6.2.2, SDK 4.3.2
Docs:        docs.serverless.com
Support:     forum.serverless.com
Bugs:        github.com/serverless/serverless/issues

serverless.yml

service: token-portal-api
webpackConfig: webpack.config #webpack config path without js extension from root folder.

frameworkVersion: '3'

provider:
  name: cloudflare
  config:
    accountId: ${file(./.envs/.production/serverless-prod.yml):CLOUDFLARE_ACCOUNT_ID} 
    zoneId: ${file(./.envs/.production/serverless-prod.yml):CLOUDFLARE_ZONE_ID} 

plugins:
  - serverless-cloudflare-workers

custom:
  domain: portal.api.com

functions:
  hello:
    name: hello
    webpack: webpack.config.js
    script: helloWorld
    events:
      - http:
          url: ${self:custom.domain}/hello/*
          method: GET

    resources:
      wasm:
        - variable: WASM
          file: rust-wasm/pkg/rust_wasm_bg.wasm
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