-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tracing .lua files #265
Comments
All assets are traced, regardless of extension, as long as the files are read in a statically analyzable way. For example, you should be able to do The best way to solve this problem is to make changes upstream to I believe changing this line from |
I created a PR OptimalBits/bull#2285 |
Thank you for the reply @styfle!
It doesn't work on the application layer because files from I do the following in my application (next 12.0.10), just for example:
Sorry, but this solution doesn't seem to be working. I made the same changes as in your PR, removed special case from nft, and rebuilt the application. After that .lua files are missing. And your PR won't solve this issue anyway, because there are several libraries with .lua files, not only I can create a repo to help reproduce the problem if needed ;) |
@voronin-ivan Ah yes you're right, since we have the bull special condition. I had to rename the package to reproduce.
Then I applied my patch and it still didn't work. It seems like the case with Once we get that fixed, then the change to @guybedford Would you agree that #267 is a bug? |
Related to vercel/nft#265 Co-authored-by: JJ Kasper <[email protected]>
There are some libraries with .lua files in core, e.g. bull, bullmq, bee-queue. And these files are ignored by default in
nft
.I see support for bull in special-cases and I can add the same for other libs. But this way looks difficult to maintain:
nft
nft
And then wait for next.js release...
Unfortunately, next.js doesn't have support for "custom" files in API-routes, only in pages (via
unstable_includeFiles
). And there is no support from Vercel also (includeFiles doesn't work with next.js). So current solutions to work with e.g.bee-queue
look uncomfortable:/pages/api
with/api
(and usevercel dev
instead ofnext dev
)Related issues:
#35
taskforcesh/bullmq#469
vercel/next.js#14807
Thank you!
The text was updated successfully, but these errors were encountered: