Giter Club home page Giter Club logo

Comments (2)

koltyakov avatar koltyakov commented on August 30, 2024 1

Hi @hmendezm,

Didn't actually get what and how to reproduce. Any combinations I tried whatever the crazy they were just worked for me.

I guess, that it's about the configuration of the context of your application in SP. Isn't it some sort SPA deployed to a SP page not as a webpart but a full page source? I would recommend use another approach and host an "app" within CEWP, yet style it as a full page if needed.

For example, CEWP source html file body:

<div id="wrapper">
  <div id="app">My app</div>
</div>

<style>
.ms-rtestate-field #wrapper {
  position: fixed;
  width: 100%;
  left: 0;
  top: 50px;
  z-index: 100;
  background: #fff;
  overflow: auto;
  bottom: 0px;
}
#app {
  padding: 1em;
}
.ms-rtestate-write #wrapper {
  position: relative;
}
</style>

To look like:

image

While it's actually a CEWP and all the standard context and scripts are on the page by default:

image

Let's pretend it's 2013 and no SPFx world is there for you yet. =)

But it absolutely a separate question.

Regard PnPjs, sp.configure worked for me as well, however, could you try this:

import { sp } from '@pnp/sp';

sp.setup({ sp: { baseUrl: webAbsoluteUrl }});
// OData headers for 2013 if it's a case

sp.profiles.myProperties.get().then(console.log);

Thank you for your interest in the sp-pnp-js library. We wanted to mention that this library is being deprecated in July 2018 in favor of the new scoped pnpjs libraries. You should begin transitioning your existing projects when possible or start new projects with the new libraries. Please see the transition guide for more details on migrating and be sure to let us know if you have any questions. Thanks!

from pnp-js-core.

hmendezm avatar hmendezm commented on August 30, 2024

Thanks KoltyaKov. My problem was the User profile service itself. it was not synchronizing correctly.

Best,
hmendezm

from pnp-js-core.

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.