Closed wiadev closed 6 years ago
Have you put baseUrl
and paths
inside compilerOptions
object in tsconfig.json file? I had same error and this was the reason.
@enolcasielles yes, I did.
"baseUrl": "./config",
"paths": {
"@app/env": ["config"]
},
I've followed the example in readme precisely and it worked but not sure why the above case is not working.
Could be because you are indexing file from root directory instead config folder? Maybe you should change by:
"@app/env": path.resolve(__dirname + 'config/config.' + process.env.IONIC_ENV + '.ts'),
@enolcasielles Thanks
Out of the blue I'm getting the same problem. Google lead me here.
Created a new thread
https://github.com/gshigeto/ionic-environment-variables/issues/39
Could be because you are indexing file from root directory instead config folder? Maybe you should change by:
"@app/env": path.resolve(__dirname + 'config/config.' + process.env.IONIC_ENV + '.ts'),
this solution is not working?i am looking for something so i need to change environments when doing the build
I've followed your steps but got the error
can't find a module
.I've kept the config.dev.ts and config.prod.ts under ./config. tsconfig.json
webpack.config.js
These are the same as you mentioned in README but still can't find a module.
Ionic v3.9.3