Skip to content
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

'settings' only refers to a type, but is being used as a value #176

Open
kerschfilip opened this issue Feb 7, 2023 · 0 comments
Open

'settings' only refers to a type, but is being used as a value #176

kerschfilip opened this issue Feb 7, 2023 · 0 comments

Comments

@kerschfilip
Copy link

Hi, I am trying to transfer a gitlab repository that contains only issues used to track project workflow and when running npm run start I get dozens of errors saying that 'settings' only refers to a type, but is being used as a value here.

For example:

26 if (settings.s3) {
       ~~~~~~~~
src/index.ts:28:18 - error TS2693: 'settings' only refers to a type, but is being used as a value here.

28     accessKeyId: settings.s3.accessKeyId,
                    ~~~~~~~~
src/index.ts:29:22 - error TS2693: 'settings' only refers to a type, but is being used as a value here.


I also had problem when I ran the script for the first time - I was getting the error "Cannot find module '../settings' or its corresponding type declarations." I kind of overcame that by changing one line in index.ts from
import settings from '../settings'; to import settings from './settings';

Any idea what I'm doing wrong? Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant