Coder Social home page Coder Social logo

Comments (6)

sun816 avatar sun816 commented on May 14, 2024

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'
    ╵                    ~~~~~~~~~~~~~~~~~~~

from cf-workers-status-page.

androidacy-user avatar androidacy-user commented on May 14, 2024

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.

from cf-workers-status-page.

sun816 avatar sun816 commented on May 14, 2024

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"
#account_id = ""
#type = "webpack"
#webpack_config = "node_modules/flareact/webpack"

#[triggers]
#crons = ["* * * * *"]

[site]
bucket = "out"
#entry-point = "./"

uncomment and adjust following if you are not using GitHub Actions

#[env.production]
#kv-namespaces = [{binding="KV_STATUS_PAGE", id="xxxx", preview_id=""}]
#zone_id="xxx"


It seems deploy on KV is ok and the worker is created with zero config. I guess the question is inside .toml file

from cf-workers-status-page.

eidam avatar eidam commented on May 14, 2024

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.

from cf-workers-status-page.

kallinos95 avatar kallinos95 commented on May 14, 2024

any updates on this? I've been having the same error with

import config from '../../config.yaml

from cf-workers-status-page.

androidacy-user avatar androidacy-user commented on May 14, 2024

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:

flareact/flareact#235

from cf-workers-status-page.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.