bnason
Explore posts from serversImport is undefined
I have a very weird problem where only in my production build is a modules imported module undefined. I'm importing
samlify
and it is importing parts of node-forge
, however in the dist chunk, the node-forge
object does not have most of the imported code there. I'm really at a loss as to what is going on here.1 replies
nuxi upgrade --force not working
When I run
npx nuxi@latest upgrade --force
it shows what updates are available, but does not apply them to my package.json. The only thing I can think of is that my dependencies are fixed to specific versions in package.json so I don't accidentally upgrade unknowingly. Since the deps aren't specified as a range, does that prohibit nuxi from upgrading correctly?2 replies
Server side worker thread
Is it possible/safe to create a server side worker thread for a long running up intensive task? If multiple of these tasks run, it slows down the responsiveness of the web interface. Hopefully moving them to their own threads should resolve that
10 replies
Unable to load module augmentation
I'm trying to use module augmentation to modify a third party library. I'm importing the file in my application, but I think the nuxt compilation process is stripping it out. Is there a specific place I need to put it and load it from?
1 replies
nuxt build and oracledb binaries being removed
After running
nuxt build
, the resulting node_modules folder for the oracledb
dependency seems to have had a lot of files removed. Specifically, I need to retain some binaries that exist. Does anyone know how to exclude it from whatever is cleaning it out?1 replies
useState and redirection losing value
I'm using
useState
within my auth plugin and during the SSR, it redirects to the login page if they are not authenticated. It's also capturing the current path and saves it in a useState
ref, however, when the redirect happens, it's doing an HTTP redirect, which basically creates a new request to the server which seems to re-call the ssr and that re-runs the plugin but this time it doesn't know about the previous requests path.
Does anyone have any suggestions?3 replies
Import errors
I'm getting an error trying to use
ts-results
https://github.com/vultix/ts-results
I'm using import { Ok, Err, Result } from 'ts-results'
but I get an error on the console Named export 'Err' not found.
it looks like it's trying to load it as a CommonJS module even though it has an ESM version available in the package. Is there anyway to get it to load that correctly?1 replies