| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
The material-module.ts is used by the stackblitz writer. It's not clear why Ivy should be disabled - is there something that the framework needs to fix in order for us to turn it back on? |
Sorry, something went wrong.
|
This workaround from Pete might work to keep Ivy enabled: |
Sorry, something went wrong.
|
@andrewseguin not by assets/stack-blitz-tests, only by assets/stack-blitz. I.e. TEMPLATE_FILES uses it but TEST_TEMPLATE_FILES does not. |
Sorry, something went wrong.
|
@andrewseguin also after fixing the noImplicitAny error, with Ivy enabled, you get this in StackBlitz Error in src/app/input-harness-example.spec.ts (14:1)
Cannot find name 'describe'. Do you need to install type definitions for a test runner?
Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.Disabling Ivy resolves this. It's unclear why there are references to Jest or Mocha when Jasmine is being used. |
Sorry, something went wrong.
|
I don't know why the error happens, but the error message comes from TypeScript itself: https://github.com/microsoft/TypeScript/blob/9906092db25aae8bd6f6b04aef5e8906251fcf13/src/compiler/diagnosticMessages.json#L2489 🤷 |
Sorry, something went wrong.
@crisbeto unfortunately, that's not working for me in https://stackblitz.com/edit/jasmine-ivy-workaround?file=tsconfig.app.json. |
Sorry, something went wrong.
|
Would everything else work if we put a @ts-ignore just on this one import? |
Sorry, something went wrong.
- remove tslint and codelyzer from examples - update jasmine dependencies - remove unused material-module.ts from test assets - add jasmine-core to package.json in stack-blitz-tests/ - disable `noImplicitAny` in stack-blitz-tests' tsconfig.spec.json since `jasmine-core/lib/jasmine-core/jasmine.js` imported in `test/jasemine-setup.ts` is not compatible Fixes angular#997
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
|
Issue #1037 tracks properly re-enabling Ivy and ensuring that the Harness Examples work. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
jasmine-core/lib/jasmine-core/jasmine.js imported in test/jasemine-setup.ts
is not compatible
Fixes #997
The stack-blitz-tests/ asset files are used for generating the StackBlitz examples for the test harnesses. In a past PR, we set them along with all of our StackBlitz assets to use Ivy. This worked fine for our component examples, but broke our Harness examples as mentioned in #997 (comment). This PR reverts that change by switching the Harness examples to use View Engine in StackBlitz. The component examples will continue to use Ivy in StackBlitz.
Additionally, this PR fixes some issues blocking the use of Ivy with the Harness examples (since jasmine-core/lib/jasmine-core/jasmine.js doesn't build in strict mode with noImplicitAny enabled). It also updates and removes some other dependencies.