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

Did you find this page helpful?