Open androidacy-user opened 1 year ago
in published stage ,there is error: [ERROR] No loader is configured for ".yaml" files: config.yaml
src/functions/cronTrigger.js:1:19:
1 │ import config from '../../config.yaml'
╵ ~~~~~~~~~~~~~~~~~~~
in published stage ,there is error: [ERROR] No loader is configured for ".yaml" files: config.yaml
src/functions/cronTrigger.js:1:19: 1 │ import config from '../../config.yaml' ╵ ~~~~~~~~~~~~~~~~~~~
Yeah, that's where I got stuck trying to migrate it and couldn't find any helpful resources.
There are so much changed from wrangle v1 to v2,I checked cloudflare doc and git action log and change the deploy.yml as below:
deploy yml.txt and wrangler.toml is changed to : name = "cf-workers-status-page" compatibility_date = "2050-09-14" account_id = "" workers_dev = true main = "./index.js"
[build] command = "npm run build"
[site] bucket = "out"
It seems deploy on KV is ok and the worker is created with zero config. I guess the question is inside .toml file
Thanks yall for reporting it. I will take a look and push a wrangler upgrade. Though last time I tried I was not very successful, because flareact did not support w2, but will check again.
any updates on this? I've been having the same error with
import config from '../../config.yaml
Thanks yall for reporting it. I will take a look and push a wrangler upgrade. Though last time I tried I was not very successful, because flareact did not support w2, but will check again.
looks like they've fixed it:
Wrangler v1 is no longer supported. Please upgrade this to work with V2.