question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AoT Fails because it cannot find BaseField

See original GitHub issue

When I compile my code with the Angular 2 AoT compiler the code will compile successfully, however I run time I will get an error that says “Cannot find BaseField of undefined”.

I’ve done some digging around in the source and the problem is in lib/a2t-ui/a2t-shared/a2t-form/a2t-form-field.component.js the BaseField is imported as such:

var _1 = require("../../../");

If I change it to

var _1 = require("../../../a2t-ui.forms"); then everything works fine.

Obviously I don’t want to go mucking around with a .js file inside my node_modules so I can put together a pull request this morning to update it, however I wanted to make sure that was a reasonable change to make in the code before I do.

I think as long as I’m at it I would make the same change in lib/a2t-ui/a2t-shared/a2t-form/a2t-form.service.d.ts. It is not causing me a problem at the moment, but I have a feeling that it would at some point since the code does the import the same way.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
jburichcommented, Jan 23, 2017

ah yes great point. I’ll make the changes in the appropriate .ts files. thanks.

0reactions
jburichcommented, Jan 27, 2017

awesome. thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular cli 5 AOT gives Module not found can't resolve ...
When building bundle with ng-packagr, installing it in Angular 5 app and then trying to AOT the application, the compiler throws the error...
Read more >
Find Field In Table But I Cannot Find in AOT
Hi Sir , I'm create custom field and this field show inside table in sql ,, But when create entity the field is...
Read more >
angular - Why won't aot compiler error on missing property?
This was my comment : AoT compiles the template beforehand, and is looking for the bindings to be generated.
Read more >
DON'T BUY Vanguard's ATTACK ON TITAN Bundle Before ...
Tracer Pack Attack on Titan - Levi Edition Bundle is now available in Call of Duty Vanguard & Warzone! The bundle includes the...
Read more >
EREN FAILED - Attack on Titan's Chapter 139 EXTRA PAGES ...
Attack on Titan Ending & Final Chapter 139 has now released extra pages for the final volume 34, We explain everything about Eren...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found