GithubHelp home page GithubHelp logo

Comments (5)

waldekmastykarz avatar waldekmastykarz commented on August 26, 2024 2

Code examples are outdated and based on TypeScript 1 whereas SPFx RC0 uses TypeScript 2. Could you try changing the namespace from ng to angular and see if that works for you?

from sp-dev-fx-webparts.

frankchen76 avatar frankchen76 commented on August 26, 2024 1

After drop6, SPFx aligned with latest Typescript by using @types instead of tsd. Try to add your angular definition using "@types/angular": "^1.5.20" for a new project.
For sp-module-loader, it actually changed to sp-loader. The old "ModuleLoader" was changed to "SPComponentLoader". Also change your import to import { SPComponentLoader } from '@microsoft/sp-loader';.

from sp-dev-fx-webparts.

jbranders avatar jbranders commented on August 26, 2024 1

Yes, that's working. Thanks you for the helpful comment.

from sp-dev-fx-webparts.

jbranders avatar jbranders commented on August 26, 2024

Yes, Thanks for the reply. It's worked for me transformed the samle ToDo webpart to the latest angular ng-office-ui-fabric and SharePoint Framework version. Thank you for the support.

from sp-dev-fx-webparts.

jbranders avatar jbranders commented on August 26, 2024

It's not working error TS4063: Parameter '$q' of constructor from exported class has or is using private name 'ng'. i get this error message, i don't know what i'm doing wrong but it seems the ng is a private name? But in the code examples it works fine?

from sp-dev-fx-webparts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.