Comments (1)
What yoman template of SPFx are you using?
Is it "No javaScript web framework"?
You are not suppose to have core-js types and in the same time es6-promise types in the solution. Probably this causes the duplicate identifier error.
The steps to add "sp-pnp-js" are:
- open the SPFx project package.json file
- add the sp-pnp-js there in the dependencies like:
"dependencies": {
"@microsoft/sp-client-base": "~1.0.0",
"@microsoft/sp-core-library": "~1.0.0",
"@microsoft/sp-webpart-base": "~1.0.0",
"sp-pnp-js":"2.0.3"
},
- open the cmd.exe
- go to the project folder
- run "npm install" from the command line to install the sp-pnp-js library
- go to your HelloWorldWebPart.ts file
- import it
import pnp from "sp-pnp-js";
This works for me.
from sp-dev-fx-webparts.
Related Issues (20)
- react-personal-tools-list - Enhanced web part properties to setup the designated lists (architecture extension) HOT 3
- react-myonedrive - HOT 4
- react-directory - Hide hidden users HOT 3
- The Advanced Comments Box solution did not work for the users with the read access. HOT 4
- react-list-form - React list how to enable edit in People picker field
- RoB Events List HOT 2
- Could not proceed with gulp build in windows node 8.17
- react-personal-greeting - Invalid glob argument HOT 1
- react-display-hierarchy - receiving Cannot find module 'worker_threads' on using gulp bundle
- react-display-hierarchy - issue with workers thread
- react-display-hierarchy issue with workers thread HOT 2
- react-display-hierarchy - package problems
- react-list-search NPM/Gulp issue
- react-page-navigator Question HOT 6
- "MODULE NOT FOUND"
- react-tree-orgchart - facing issue while running webpart HOT 1
- Modern Script Editor Webpart is not working HOT 3
- react-azure-openai-api-stream - HOT 2
- react-script-editor - Component ID exist in another solution HOT 6
- TypeError: Failed to fetch at c when trying to attach files in SPFx HOT 1
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.