-
Notifications
You must be signed in to change notification settings - Fork 12k
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
One of the dependencies is resolved as undefined in test environment (ng test) #7449
Comments
I cloned your repo and used the |
Also, I noticed you're doing So I'd suggest you try doing See http://2ality.com/2014/09/es6-modules-final.html for differences between each type of import. |
Uhm. Here is my package.json in my repo in
Give me 5 minutes. |
@filipesilva Ok, my bad. Let me check |
Thank you very much! Closing this one. Thank you that you pointed me to article which explain that. Sry for the time :( |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug Report or Feature Request (mark with an
x
)Versions.
Repro steps.
git clone [email protected]:sharikovvladislav/ng2-diary-book.git
git checkout repro
git fetch
yarn install
yarn test:repro
The log given by the failure.
You will get:
This problem exists only in test environment. If you run
ng serve
and open localhost:4200 you will see markdown is working fine: you will see<p><em>abc</em></p>
on the page and also you will see something like this in the console.Of course I have markdown-js in the node_modules.
Desired functionality.
Import must work in any environment.
The text was updated successfully, but these errors were encountered: