-
Notifications
You must be signed in to change notification settings - Fork 665
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
TypeError: tsDiagnostic.file.getText is not a function #2889
Comments
@staskuban May we have the full output of |
@dwieeb , sure
|
I reslove this issue. Problem with https://github.com/kadoshms/ionic2-autocomplete which crashes while compile with no errors. I updated check in logger-typescript fo |
Hi @staskuban can you tell me how to apply the change on an existing project? Because I didn't find that file into node_modules/@Ionic. Thanks |
This fix should be merged |
@RanmalN i am still getting the error and not sure that has been merged in the latest ionic cli i am using 3.19.x. |
I've been compiling with --prod with no issues for several weeks. Now it produces this error out of nothing! Why is the PR closed? |
@soniyj |
hi @5HARK cool thank you I will try 👍 |
Same issue here, why is the PR closed ? Run into this issue with ionic-cli 3.19.1 and ionic 4.5.2 packages ionic info
package.json
|
Same problem here...
package.json
|
Hi, also got this problem. Compiling without --prod works, with --prod get the following:
|
I got this problem long time ago and didn't find any solution about it |
@staskuban can you please reopen this PR? |
So do I. +1
|
+1 I have this error on a lazy loaded project! |
@zixia @romain10009 This turned out to be a mistake I made in an html file where I did I'm not sure how this causes the issue but to debug your own issue, you can go to the
and change the if condition on line 29 to include the getText check
Then run the build, and see which file has the typescript error |
See this PR: ionic-team/ionic-app-scripts#1365 This will be fixed in app-scripts 3.1.9 |
if found which cause the error tsDiagnostic.file.getText is not a function
it works ok like this
why |
烦躁,没人关注这个问题啊,难道我还得把angular的版本降到4.1.3 ionic 版本降到2.1.4才能解决问题吗 |
|
u can run ./node_modules/.bin/ngc check what cause the error |
Hi there, im updatet my ionic env and now having theese errors when trying
build ios --prod
ionic info
cli packages: (/Users/user/WebstormProjects/MDMProfileMobile/node_modules)
global packages:
local packages:
System:
Environment Variables:
Misc:
The text was updated successfully, but these errors were encountered: