Comments (14)
That fixed the problem. Thank you Waldek.
from sp-dev-fx-webparts.
Which version of the SharePoint Framework are you using?
from sp-dev-fx-webparts.
Drop 6
from sp-dev-fx-webparts.
Could you update Angular to 1.5.x and install its typings using:
$ npm install @types/angular -D
from sp-dev-fx-webparts.
getting this error now
from sp-dev-fx-webparts.
Have you removed the old typings from the project? What version of Angular and Angular typings are you using?
from sp-dev-fx-webparts.
Could you please share the commands you are using after running yo @microsoft/sharepoint?
from sp-dev-fx-webparts.
Install Angular:
npm i angular -S
Install Angular TS Typings:
npm i @types/angular -D
from sp-dev-fx-webparts.
I have executed the same commands but getting the same error. Please refer the code from the temporary location https://github.com/sprider/wordpress/tree/master/Temp/angular-web-tree
from sp-dev-fx-webparts.
I have an idea: could you change ng.auto.IInjectorService
in here https://github.com/sprider/wordpress/blob/af442f80b51b23f323038971397687c095121ee5/Temp/angular-web-tree/src/webparts/webTree/WebTreeWebPart.ts#L21 to angular.auto.IInjectorService
and see if it helps?
from sp-dev-fx-webparts.
That resolved the second error and opened the first issue(Property '$broadcast' does not exist on type '{}') again.
from sp-dev-fx-webparts.
OK, so the error is caused by the old Angular typings. Remove the ./typings/angular folder and from the ./typings/tsd.d.ts remove the reference to Angular typings and you will be able to build the project as expected.
from sp-dev-fx-webparts.
Any idea on the error "Parameter '$rootScope' of constructor from exported class has or is using private name 'ng'."
i am trying my own sample from this https://github.com/waldekmastykarz/spfx-angular-ts-todo/blob/master/src/webparts/toDoWebPart/app/HomeController.ts
from sp-dev-fx-webparts.
This sample is relatively old and based on TypeScript v1.x so it could be that the way TypeScript v2.x handles types and private names is different.
from sp-dev-fx-webparts.
Related Issues (20)
- js-advanced-commenting ping user notification? HOT 1
- react-modern-version-history - How to set up and make it work.
- react-calendar - why really slow when first opening a page with this webpart on it? HOT 1
- react-birthdays - HOT 2
- Script editor web part for modern pages stopped working HOT 6
- error while running the webpart
- react-calendar - HOT 1
- Twitter feed not appearing on React Twitter webpart after configuring profile.
- Issue with calendar category component to filter.
- Calendar webpart - Facing issue while creating weekly recurrence event
- react-script-editor - HOT 4
- react-script-editor - cannot add two body HOT 1
- react-script-editor - Will this still work post November 2024? HOT 1
- React Rhythm of Business Calendar not correctly rendering recurring events on month view HOT 8
- Recurring Events not working
- React Pages Hierarchy SPFx - changing the style of button styles HOT 1
- Gulp Build not working on react-calendar
- react-calendar is not 100% accessible via keyboard
- React Content Query Online - Stops Working HOT 1
- vuejs-todo-single-file-component doesn't run with any nodejs version
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sp-dev-fx-webparts.