DEV Community

loading...

Discussion on: Hide environment variables in your StencilJS project

Collapse
daviddalbusco profile image
David Dal Busco Author

You are facing the error in your editor or when you run the command?

In my editor I had to add the following:

// @ts-ignore
import devConfig from './config.dev.json';
// @ts-ignore
import prodConfig from './config.prod.json';

but otherwise, do you have maybe a special tsconfig.json file which doesn't allow you to import from json files?

is your project open source, could I check it out?