B
B
bormor2019-09-08 15:48:59
JavaScript
bormor, 2019-09-08 15:48:59

TS7016: Could not find a declaration file for module '../../../secret/firebaseConfig.js'. How can it be corrected?

Deploy the project to typescript. I connect the Firebase config.
The project does not compile due to an error

[tsl] ERROR in D:\DESKTOP\BSM\Repos\check-out-dev\src\components\api\api.ts(4,32)
      TS7016: Could not find a declaration file for module '../../../secret/firebaseConfig.js'. 'D:\DESKTOP\BSM\Repos\check-out-dev\secret\firebaseConfig.js' implicitly has an 'any' type.

firebase config connected as
export const firebaseConfig = {
    apiKey: 'хххх',
    authDomain: 'ххххх.firebaseapp.com',
    databaseURL: 'https://ххххххv.firebaseio.com',
    projectId: 'ххххх',
    storageBucket: 'хххххххххххх',
    messagingSenderId: 'хххххххх',
    appId: 'ххххххх',
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2019-09-08
@bormor

Change the config file extension to .ts

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question