firebase admin code completions not working in vscode - node.js

I have tried installing the typescript thing using :
npm install --save-dev #types/firebase
but with no luck .
There is no code completion or intellisense whatsoever for "firebase-admin" , "firebase-functions" . Whats methods can i use to fix this ?
I have tried adding this at the beginning of my node.js index file .
"/// <reference path="./node_modules/#types/firebase" />
With no luck here.

The typings for firebase and firebase admin are normally included into the NPM package, just peek in the node_modules folder. I made a little demo repo for you with the most common settings. The code completion worked as expected, the compilation as well.
https://github.com/giespaepen/firebase-admin-demo

Related

How to enable NestJS code completion, VS Code

I am new to nestjs. Having experience with Node+Expressjs.
I have created a project using nestjs cli. But when I import it into vscode, code-completion is not working. But the tutorial on YouTube it is working.
Can anyone please help me, how to get code completion for nestjs in vscode.
It compiles as similar to Nodejs
First Add project in vs code
Then go to terminal
then set your package.json file
then npm start or npm run start according to your path set.

CodeMix/Eclipse cannot find 'react/jsx-dev-runtime'

I'm completely new to React, Node, NPM, and CodeMix in Eclipse. I'm a veteran java developer and so want to use eclipse over VSCode for familiarity. I'm following this tutorial:
https://www.genuitec.com/react-tutorial-getting-started/
I get to step 5 and run
react-scripts start
The result:
./src/index.js
Module not found: Can't resolve 'react/jsx-dev-runtime' in 'C:\temp\workspace\CCFPortal\src'
I created my project via the new project to create a React project. The wizard added all the standard code. Bringing up the terminal gave me some issues because the terminal doesn't seem to set the path to bring nodejs.exe into scope, so I did it manually in the terminal window. Adjusting the properties in window->preferences terminal+ doesn't seem to ever take effect.
I did the following in npm (in addition to the steps in the tutorial) because there were two 'warnings' in the markers view that suggested it. As near as I can tell, all commands were successful whether from the tutorial or these two (though it does flag some 'vulnerabilities' in npm that I force fixed).
npm install #types/react
npm install #types/react-dom
It is indeed true that there is no react/jsx-dev-runtime under that src folder. There's NOTHING there but the src. But I'm unclear why it wasn't there given that I ran npm install and the other things suggested in the tutorial.
Can someone help explain my pathing issue in the terminal and especially why npm is doing this when I run react-scripts start?

How do I use Quokka with imported typescript files?

I've installed ts-node with NPM install, and tinkered with this for hours, I cant find any other documentation on the website as to why its not working. A quick google search has also turned up nothing; which is why I'm SURE its some small thing I'm missing. ts-node has also been installed globally AND in the project folder I'm getting the following error:
To import TypeScript files from quokka, `ts-node` module must be installed. 
It is also recommended to install `tsconfig-paths` module for tsconfig.json paths mapping. 
You may install the modules in your project or into quokka global folder by running `npm install ts-node tsconfig-paths` command inside the `~/.quokka/` folder. 
at ​​​Module.load​​​ ​internal/modules/cjs/loader.js:653​
at ​​​tryModuleLoad​​​ ​internal/modules/cjs/loader.js:593​
at ​​​Function.Module._load​​​ ​internal/modules/cjs/loader.js:585​
at ​​​require​​​ ​internal/modules/cjs/helpers.js:25​
at ​​​Object.<anonymous>​​​ ​frontEnd/datrix/src/app/Logic/DeveloperTemplate.ts:1​
at ​​​Module._compile​​​ ​internal/modules/cjs/loader.js:778​
does anyone have some insight on how this can be done?
I figured it out, I had to open the project file in vs code, not the directory above it.

Why does node.js plugin in Intellij-Idea don`t work?

I installed plugin for Intellij-Idea and it doesn`t work. Why can it be? As you can see the require word doesn`t become yellow.
And here is my plugin installed:
Please make sure to enable Node.js Core library in File | Settings | Languages & Frameworks | Node.js and NPM
I like to hover over things that are underlined to give me clues as to where to start. Your "path" and "require" are underlined. Your errors might say Unused local variable 'path' and Unresolved method or function require()
You might not have installed node in the current project. If you don't have node installed, try:
npm init to create a package.json file.
IntelliJ will walk you through creating the file. You can just press enter all the way through if you want and edit it later.
npm install express --save (replace express with whatever library you are trying to use) to save library in the dependencies list
Installing express
How can I fix WebStorm warning “Unresolved function or method” for “require”

Enabling Intellisense for Mocha

I'm running VS Code 1.0. I've already successfully added intellisense for a number of frameworks, i.e., Express, Restify, and even Gulp.
Now I'm trying to enable it for Mocha.
The minimum setup I'm doing is:
Create a folder.
npm init
npm install mocha
typings install mocha --ambient
Open Code in said folder.
Create a new file and try to type "describe".
Also, this guy got it working.
You just have to ad jsconfig.json file to the root of your project. It can even be empty.
Check this docs.

Resources