Open shaozi opened 2 years ago
I did npm install -d '@sveltejs/pancake' in my project. In vscode, it marks the import * as Pancake from '@sveltejs/pancake' as error, saying module '@sveltejs/pancake' or its corresponding type declarations. I am using typescript.
npm install -d '@sveltejs/pancake'
import * as Pancake from '@sveltejs/pancake'
module '@sveltejs/pancake' or its corresponding type declarations
screenshot of vscode:
Thats because the package is written in pure JavaScript and has no types.
I did
npm install -d '@sveltejs/pancake'
in my project. In vscode, it marks theimport * as Pancake from '@sveltejs/pancake'
as error, sayingmodule '@sveltejs/pancake' or its corresponding type declarations
. I am using typescript.screenshot of vscode: