Skip to content
This repository has been archived by the owner on May 1, 2020. It is now read-only.

DeepLinkConfigToken did not return valid data #1106

Open
jetav8r opened this issue Jul 12, 2017 · 10 comments
Open

DeepLinkConfigToken did not return valid data #1106

jetav8r opened this issue Jul 12, 2017 · 10 comments

Comments

@jetav8r
Copy link

jetav8r commented Jul 12, 2017

Note: for support questions, please use one of these channels:

https://forum.ionicframework.com/
http://ionicworldwide.herokuapp.com/

Short description of the problem:

when running the production build, it exits at deeplinks...

What behavior are you expecting?

To be able to build a production release

Steps to reproduce:
1.run ionic cordova build browser --prod --verbose
2.
3.

insert any relevant code between the above and below backticks

Which @ionic/app-scripts version are you using?
I've tried several versions...right now I'm using versions of devDependencies below:

"devDependencies": {
    "@ionic/app-scripts": "^2.0.1-201707121621",
    "@ionic/cli-plugin-cordova": "1.5.0-alpha.18371e18",
    "@ionic/cli-plugin-ionic-angular": "1.4.0-alpha.18371e18",
    "typescript": "2.3.4"
  },

Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)

Here's the console output after running the build command:

[16:21:50] build prod started ...
[16:21:50] clean started ...
[16:21:50] clean finished in less than 1 ms
[16:21:50] copy started ...
[16:21:50] ngc started ...
[16:21:59] ngc finished in 9.48 s
[16:22:00] preprocess started ...
[16:22:00] deeplinks started ...
[WARN] Error occurred during command execution from a CLI plugin (ionic/cli-plugin-cordova).
[DEBUG] !!! ERROR ENCOUNTERED !!!
Error: The RegExp to find the DeepLinkConfigToken did not return valid data
[DEBUG] Error: The RegExp to find the DeepLinkConfigToken did not return valid data
at new BuildError
(C:\Users\me\WebstormProjects\app\node_modules@ionic\app-scripts\dist\util\errors.js:16:28)
at C:\Users\me\WebstormProjects\app\node_modules@ionic\app-scripts\dist\preprocess.js:18:21

@danbucholtz
Copy link
Contributor

@jetav8r,

What Angular version are you running?

Thanks,
Dan

@jetav8r
Copy link
Author

jetav8r commented Jul 14, 2017 via email

@danbucholtz
Copy link
Contributor

@jetav8r,

Yep, Angular 4.2 changed something in the ng factory files. We'll need to upgrade to match them.

Thanks,
Dan

@antoineol
Copy link

antoineol commented Aug 3, 2017

I'm also having this issue, and it seems some browsers have issues with animations below Angular 4.2 (like angular/components#5019, angular/angular#14007 and I'm also having a Partial keyframes are not supported I cannot explain on an older browser). Supporting Angular 4.2+ would be great to limit the risk of issues with things like animations.

Any update so far about this issue?

Thanks!

EDIT: I just noted it might be a duplicate of #1006 and #1070.

@dev-manager-uk
Copy link

@danbucholtz We are getting this issue too. Any eta on a fix? Thanks!

@cmartin81
Copy link

cmartin81 commented Sep 6, 2017

I had a look inside the sourcecode. And the appNgModuleFactoryFileContent has changed. It cannot find any matches on the regex /this.?DeepLinkConfigToken.?=([\s\S]*?);/g
This only happens when you run it with the --aot or --prod option

Are there any eta on a fix?

@soumak77
Copy link
Contributor

@danbucholtz has the Ionic team run into this issue yet now that ionic-angular uses angular 4.3.6? I'm running the latest ionic-angular build and I'm hitting this issue now that angular has been upgraded.

soumak77 referenced this issue Sep 21, 2017
…-transform approachs to work better with strict TS settings
@soumak77
Copy link
Contributor

@danbucholtz seems like this issue is resolved. I just tested with @ionic/app-scripts@nightly and the production build succeeded!

@pedrohills
Copy link

pedrohills commented Oct 14, 2017

npm install @ionic/app-scripts@nightly --save-dev worked for me.

@menorval
Copy link

Thanks @pedrohills, it also worked for me.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants