So I'm updating a website using BigCommerce's Stencil CLI and now I'm suddenly getting this warning or error.
(node:4956) [DEP_WEBPACK_RULE_LOADER_OPTIONS_STRING] DeprecationWarning: Using a string as loader options is deprecated (ruleSet[1].rules[1].use[0].options)
I did just get done reinstalling my Nodejs node modules and I'm guessing it has something to do with webpack v5 from the few results on google that pop up when I search the error, but I can't find any results that give me any clues on how to get rid of this error. I'm just a beginner at all of this, so as detailed of an explanation as possible on how to fix the issue would be appreciated. My node version is 12.0.0.
I checked on some of the GitHub issues for the cli and found a similar issue that has a few developers sharing solutions. It's not 1:1 but is a similar error around a DeprecationWarning. Also, did the CLI complete its installation?
This appears to be a warning rather than an error. If the cli completed the install, you should be good to move on with your theme customizations. However, if you wanted to dig into this warning, I'd recommend checking out that thread I mentioned, to see if any of those work for you! Find it here: https://github.com/bigcommerce/stencil-cli/issues/742
Related
I get the warning
Node.js 12 actions are deprecated.
For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/.
Please update the following actions to use Node.js 16: ./
I know it's because v12 has been deprecated and is being removed, but I've changed my usages from v12 to v18 and I don't understand why I still get this warning. It should have vanished.
I've read the doc for Actions Maintainers at https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#runs-for-javascript-actions
I only specify a nodejs version there: https://github.com/UnlyEd/github-action-await-vercel/blob/main/.github/workflows/update-codeclimate-coverage.yml#L24
I use "#actions/core": "1.10.0"
While writing the question, I noticed in https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#runs-for-javascript-actions that there was a runs:. I had seen it, and overlooked it.
I didn't understood it was located in the /action.yml, at the root.
Here is an example: https://github.com/UnlyEd/github-action-await-vercel/blob/cee5b33a0725899c2a78be7d73819114f6aac745/action.yml#L17
Changing this line obviously fixed the issue.
Please check the images of my vs code editor I don't know what's going on why am I getting the error
I think you have to put this instead as I see your project tree:
import db from "../firebase";
Apparently there are some problems that i was also facing in firebase v9.1.2. You can downgrade to v8.6.2 and that is how i also got rid of these errors. Just paste the below code snippet in your package.json file in place of firebase module. And Google also made a number of changes when firebase v9 was released. I would highly recommend you to see the documentation as it will be the most helpful resource.
FIREBASE V9 Documentation
"firebase": "8.6.2"
I started to use termux in my cellphone, and looking for information I find that I can install hydra in it.
However, when I use the comand
pkg install hydra
All I get is an error message as you can see in the title. I've tried to update and upgrade the system several times, but I'm still getting the same error.
So, I wonder... is there a chance that this library has another name? (I said it because I've seen other comments with the same error in other posts)
So please, can you help me to solve this?
Additionaly, I upload 2 pictures: the first one with the error message I get. The second one is some information that I think I might help (when I seach for that command 'hydra', it seems to be not found).
Thanks in advance.
As you can see here Hydra package has been removed from Termux repositories and no longer installable.
I am occasionally getting the above error logged in AWS lambda. Just curious about it and want to know how can I replicate it locally in nodejs12.
This means that one of your packages or yourself are using a deprecated feature as of that version of node.
You would need to figure out which module it is and see if there is a fix for the issue.
The packages themselves can fix the issue by changing anywhere they use ._headers to .getHeaders
That said, this is only a warning, this wont currently break anything but it's always better to upgrade.
As suggested by the title. I hate console logs, really want to find a more effective way to debug Firebase functions. I came across to this blog thanks to David Mccoy. He shows us how to use the google-cloud/functions-emulator package to enable the debugging feature.
However, when I try to follow the instruction and install the package, I came across this warning message:
$ npm install -g #google-cloud/functions-emulator
npm WARN deprecated #google-cloud/functions-emulator#1.0.0-beta.6: Deprecating in favor of the Functions Framework and firebase-tools. See https://github.com/googlearchive/cloud-functions-emulator/issues/327
I follow the link to check out the new framework, but can't seem to figure out how to use it. I am wondering if anyone can tell me how to use this new Functions Framework and firebase-tools to set breakpoints in VS Code? THANKS!
Firebase has a cli to run emulators
firebase emulators:start
There is good documentation explaining how to work with it here:
https://firebase.google.com/docs/rules/emulator-setup
As the error message suggests, you will also want to install the firebase-cli (firebase-tools) to make use of these features instead of the older #google-cloud functions emulator
https://firebase.google.com/docs/cli/