-
Notifications
You must be signed in to change notification settings - Fork 459
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
Unregister default file: shortstop-handler #470
Comments
Hi there. Could you provide some additional details about your configuration? |
Here is the relevant portion of our
When the app is launched via |
the |
@grawk that's exactly the point of this issue - this behavior is crashing my app. Since |
In other words, anybody using an npm supported |
Oh, sorry. I didn't register that the file: directive was in your package.json as opposed to a config file... |
There is currently no configurability around the set of shortstop handlers registered. That would seem to be the only resolution to this issue. |
Thanks for bringing this to our attention. Another workaround may be to ignore values pulled in from sources other than configuration during resolution. |
Yeah, I was thinking the same thing - only parse things coming from the |
Sounds like this issue should be filed against confit instead? |
Package.json gets explicitly added here, not a confit concern. |
I guess I need to reproduce this locally to fully understand what's happening... I'll give that a try tomorrow so I'm not talking out of my whatever. |
@tlivings Where is |
OK. I have it reproduced locally. You just have to add a local module into the package.json... which should be clear enough from @jknight12882 's comments already. But for reading comprehension on my part. |
Submitted a PR to confit: krakenjs/confit#65 This would give ability to configure a set of env properties for confit to ignore. Which in turn would prevent a shortstop-handler from attempting to process a string it shouldn't process. The ignore property could then be set in kraken for the npm local_modules environment properties. |
Made some changes to my fork of kraken-js to use the changes from the confit PR above: This would merge the options passed into the kraken constructor under var options = {
confit: {
envignore: ['npm_package_dependencies_react-dom', 'npm_package_dependencies_react']
}
}
app.use(kraken(options)); Confit would simply ignore these environment variables and not attempt to match them to a shortstop handler. |
Hello @grawk! I find myself running into this issue nearly 7 years later. It seems like a fix was found, but didn't make it all the way into the main kraken-js project. Will you accept a PR that implements the fix from your fork? |
Hey @gshively11 .. happy to take a look and evaluate it. if it's an acceptable risk then we can move forward |
Options can now be passed directly to confit via `{ confit: {} }`. This can be used to mitigate issue krakenjs#470.
This handler wreaks havoc when you have a local_module installed in
package.json
. It tries to execute a read independencies
and crashes out withThe text was updated successfully, but these errors were encountered: