worker cannot be deployed with my own json file?
worker cannot be deployed with my own json file? even if i upload a file in the explorer?
8 Replies
You're gonna need to give more context here for people to help
so i upload my own json to the work app, seems it cannot be deployed..
the js code cannot find this json file at all such a pain
and it is not there.
How are you importing the file? What errors are you seeing? I would recommend developing locally with wrangler as importing a json file there will be very easy.
i either dragged my json into that explopor or right click and upload my json file.
How are you importing it and attempting to use it in your worker’s code?
i think i tried multiple ways including
require()
or fetch()
or import from