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

Move contents of settings-development.json into a non-json file (maybe .env?) #30

Open
Snailedlt opened this issue Feb 13, 2022 · 0 comments
Labels
good first issue Good for newcomers redesign architectural or structural re-design of the bot

Comments

@Snailedlt
Copy link
Member

The settings-development.json is causing the following warning due to node needing an experimental feature for importing .json files.

ExperimentalWarning: Importing JSON modules is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)

image

This experimental feature can be removed at any moment, which means it would be better to store that data elsewhere (for example in a .env file)

To get rid of the warning, simply remove --experimental-json-modules from start:dev and start:prod inside package.json

@Snailedlt Snailedlt added good first issue Good for newcomers redesign architectural or structural re-design of the bot labels Feb 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers redesign architectural or structural re-design of the bot
Projects
None yet
Development

No branches or pull requests

1 participant