Open MehrdadKhnzd opened 3 days ago
Thanks for the report. I know we had such issue with an old version of the adapter, but the newest release should not have it anymore. Can you please try to add a minimal reproduction, which shows the errors on latest versions?
@alexanderniebuhr I found the error. It's because I have imported a text file in my TSX
file:
import file from '../files/text.txt'
This is a minimal repro. If you comment out the import in Page.tsx
, it will build successfully. Otherwise, it will fail.
https://stackblitz.com/~/github.com/MehrdadKhnzd/astro-cloudflare-text-import-bug-repro
On a more minimal reproduction, I wasn't able to recreate this error by importing text, so I'm not sure what all the parameters that affect it are: https://stackblitz.com/edit/github-7vggel?file=src%2Fpages%2F_%2FPage.tsx
Thanks!
Thanks for the reproductions, I'll try to figure out the root cause.
Astro Info
Describe the Bug
This is a new project I'm building for the first time. After building the files and while
finalizing server assets
andRearranging server assets...
it throws an error:It seems that the file that it's looking for is under
/dist/_astro
not/dist/_worker.js/_astro
- there is no_astro
folder inside_worker.js
and I don't understand why this happens, either the build step invite
puts the stuff in the wrong place:Or there's an issue with
afterBuildCompleted
.Thanks for your help, please let me know what you think.
What's the expected result?
It should build the project normally.
Link to Minimal Reproducible Example
I couldn't recreate it using a minimal reproduction, but I can try again to do so if the error is not recognizable.
Participation