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
Issue with typings in WebWorker bundle #4902
Comments
+1 |
1 similar comment
+1 |
+1 |
Is there a work around until it's fixed in beta-01? |
+1 |
There's not a workaround at the moment. I'm hoping to close this next week However, since typescript still produces output even with typing errors On Fri, Nov 6, 2015, 3:28 PM Laicos Lee notifications@github.com wrote:
|
This issue doesn't still seem fixed in version 46.. any update please? |
We're reworking WebWorker bootstrap and the import paths for beta0 (See #4834). As a result we'll be removing the WebWorker specific import paths in favor of importing directly from Once I finish that, the typings should no longer be a problem because WebWorkers will be using the same .d.ts files as the regular angular bundle (minus the browser platform files and adding in the WebWorker platform files). |
Thanks... will look forward for beta0. |
Is this fix in beta.0? |
Yup! Sorry for forgetting to upgrade this issue. The |
You can also read the docs for WebWorker bootstrap here. |
How was this resolved? I'm using beta.0 and still have the issue. Thanks |
+1 same issue. |
@Saint48198 The issue should have been fixed in beta.0. If you're still experiencing issues can you please post the full error text here? Also, make sure that you are not importing from |
+1 same issue (2.0.0-beta.5) |
+1 same issue 2.0.0-beta.3 |
I got my stuff working after I added the Typings in the filesGlob "filesGlob": [
"./src/**/*.ts",
"./test/**/*.ts",
"!./node_modules/**/*.ts",
"src/custom_typings.d.ts",
"typings/browser.d.ts"
], |
@DiegoYungh Your workaround didn't work for me. Can you explain, what your intention was with this fix? |
@digitaldonkey What typings issues are you seeing? If it's that typescript can't find the angular imports then you need to include your entry point in the |
I can't promise that I'm in the right problem, but you can have a look.
package.json:
tsconfig.json:
Using generator-angular2-gulp-webpack with yo. |
@digitaldonkey Are you still importing from the |
Also, you should add the files that you call bootstrap from (both the render bootstrap and the app bootstrap), to a files array in your tsconfig.json file |
@VahidN try @ronakvbhatt07 This means there's still no typings for the referenced name available. Do you have a |
@segersrobbert I think this problem is related to rxjs 5.0.0-beta.6 |
@segersrobbert yes i do have
And when i try |
I had similar problem after upgrading to Angular2 RC, and solved it as shown here: http://stackoverflow.com/a/36948893/3532945 |
@ronakvbhatt07: |
@segersrobbert Hey, thanx for the solution i just got it right and now its working. Thank hyou |
@ronakvbhatt07 in the |
@ssuperczynski I do have |
This is driving me mad, and I've been researching and trying various "fixes" for hours, but nothing seems to work. Invalid module name in augmentation, module '../../Observable' cannot be found. Property 'map' does not exist on type 'Observable' are my two biggest headaches at the moment. |
an article to help understand typings : http://blog.mgechev.com/2016/03/28/ambient-type-definitions-duplicate-identifier-typescript-fix/ |
@twilliamsgsnetx Since Angular 2.0.0-rc.0 you need the following: |
@segersrobbert Which file do we need to add the |
@IAMtheIAM see my recipe here this should help you: http://stackoverflow.com/a/36948893/3532945 |
@IAMtheIAM wherever you use the |
adding the 'rxjs/add/operator/map' (or any other rx operator) gives a corresponding error for its .d.ts file, and keeps the 'map does not exist' error:
I have referenced /typings/browser/ambient/es6-shim/index.d.ts |
Add this line to your main.ts file import 'rxjs/Rx'; // Load all features |
@VahidN loading all rx-features just gives me hundreds of Observable-errors (one per rx feature that uses observable). It seems like its an issue with how visual studio handles typings, and ive decided to downgrade to rxjs beta 2, until the VS/TS team fixes it (still running angular2.rc1) |
You can overdrive the Visual studio's TypeScript compiler and use the nodejs one. |
This issue has been reported here. |
I have solved this issues by following instructions in "TypeScript Typings" section in the angular doc. I have added
To make it work in Visual Studio with ASP Core, this article is also very helpfull. This is my full package.json
|
edit [tsconfig.json] $ npm install collections |
@youngplussoft Thx replace es5 by es2015 work for me |
That is not a solution, it will output es6 files, limiting browser support. |
|
Well, this worked for me - |
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. |
If I create a new angular 2 project using alpha 44 from NPM and attempt to load the webworker bundle in my TypeScript project I get the following errors during compilation. It looks like the facade types are not loading for some reason.
The text was updated successfully, but these errors were encountered: