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
Walshy
Walshy4w ago
You're gonna need to give more context here for people to help
PhDfighter
PhDfighterOP4w ago
so i upload my own json to the work app, seems it cannot be deployed..
No description
PhDfighter
PhDfighterOP4w ago
the js code cannot find this json file at all such a pain
PhDfighter
PhDfighterOP4w ago
and it is not there.
No description
James
James4w ago
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.
PhDfighter
PhDfighterOP4w ago
i either dragged my json into that explopor or right click and upload my json file.
James
James4w ago
How are you importing it and attempting to use it in your worker’s code?
PhDfighter
PhDfighterOP4w ago
i think i tried multiple ways including require() or fetch() or import from

Did you find this page helpful?