Open gerhardcit opened 6 years ago
Hello gerhardcit, A workaround before dialogflow team generate index.js.map, it work if you create the file yourself.
Thanks @Wheelskad , would you be so kind as to give some tips and share your methods in this. I've not ventured into that space before. You could save a lot of people some effort.
@gerhardcit, you have just to create an empty index.js.map into node_modules/api-ai-javascript and it works. Ionic (because it's not angular/typescript problem like you say) seems happy with it and you too :)
Same problem here.
Thank you so much Wheelskad! That worked
Alternative workaround is to force the es6 version to be used instead of typescript:
import {ApiAiClient} from "api-ai-javascript/es6/ApiAiClient";
@gerhardcit, you have just to create an empty index.js.map into node_modules/api-ai-javascript and it works. Ionic (because it's not angular/typescript problem like you say) seems happy with it and you too :)
This is not enough if you'r using source-map package. You need to add {"version":1}
into index.js.map to respect source-map package getArg
params and prevent further errors throwing.
In a basic ionic 3 app, I get this error when doing ionic serve
I basically tried to adapt the lesson from https://angularfirebase.com/lessons/chatbot-in-angular-with-dialogflow-api-ai/ into a Ionic web (only) app and got stuck right at the start.
then later
but before we get there... the build error above apprear.
This works perfectly in Angular. So is it Ionic that is at fault having to have a .map file or is it because another error occurred and the typescript mapper needed a .map file to show the error.
Any change you can generate that .map file when building so it makes debugging or troubleshooting easier?