Skip to content
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

RegExp and its literal version is not supported too #18

Open
e-cloud opened this issue Jul 11, 2017 · 1 comment
Open

RegExp and its literal version is not supported too #18

e-cloud opened this issue Jul 11, 2017 · 1 comment

Comments

@e-cloud
Copy link

e-cloud commented Jul 11, 2017

export const API_REGEXP = new RegExp('^' + apiPrefix)

export const Default_Interceptor_config: HttpInterceptorConfig = {
    interceptors: [
        {
            interceptor: RequestHeadersInterceptor,
            patterns: [API_REGEXP],   // --> empty array after aot
        },
        {
            interceptor: RequestRestifyInterceptor,
            patterns: [API_REGEXP],   // --> empty array after aot
        },
        {
            interceptor: ResponseErrorForwardInterceptor,
            patterns: [API_REGEXP],   // --> empty array after aot
        },
    ]
}
@jogelin
Copy link

jogelin commented Feb 23, 2018

I think I have the same kind of errors:

export const FORMLY_CONFIG: ConfigOption = {
  types: [
    {
      name: 'nrn-field',
      extends: 'input-mask-field',
      defaultOptions: {
        templateOptions: {
          maskConfig: {
            mask: [/\d/],                  // --> Error on this line, work in JIT
            showMask: false,
            guide: true,
            placeholderChar: '_'
          },
          required: true
        }
      }
    }
  ]
};

Error:

ERROR in ..\..\..\libs\person\src\formly\formly-person.module.ts(9,56): Error during template compile of 'PersonFormlyModule'
  Expression form not supported in 'FORMLY_CONFIG'
    'FORMLY_CONFIG' contains the error at ..\..\..\libs\person\src\formly\formly-person.config.ts(16,20).

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

No branches or pull requests

2 participants