sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

After deploying webpart to tenant it started throwing error.

Open craghavendra21 opened this issue 9 years ago • 15 comments

Category

  • [ ] Question
  • [ ] Typo
  • [x] Bug
  • [ ] Additional article idea

Expected or Desired Behavior

Webpart is should work fine in classic pages

Observed Behavior

Earlier was able to deploy the same solution and working fine but now the same solution is throwing below error on the page.

[SPWebPartErrorCode.IncorrectBoostrapModule]:
Bootstrap module for web part WebPart.PowerLinksWebPart.g_32239c64_e2c5_46fa_ae64_b9040049f2e0 not of the correct type. Make sure to export your web part as 'export default WebPartName'.

***CALLSTACK:
Error
    at t [as constructor] (https://spoprod-a.akamaihd.net/files/sp-client-prod_2017-11-10.009/sp-classic-page-assembly_en-us_89fc552e11063ddb601e966dd2b79117.js:201:20910)
    at new t (https://spoprod-a.akamaihd.net/files/sp-client-prod_2017-11-10.009/sp-classic-page-assembly_en-us_89fc552e11063ddb601e966dd2b79117.js:301:26738)
    at Function.t.createWithLogProperties (https://spoprod-a.akamaihd.net/files/sp-client-prod_2017-11-10.009/sp-classic-page-assembly_en-us_89fc552e11063ddb601e966dd2b79117.js:301:27319)
    at e._instantiateWebPart (https://spoprod-a.akamaihd.net/files/sp-client-prod_2017-11-10.009/sp-classic-page-assembly_en-us_89fc552e11063ddb601e966dd2b79117.js:301:44485)
    at https://spoprod-a.akamaihd.net/files/sp-client-prod_2017-11-10.009/sp-classic-page-assembly_en-us_89fc552e11063ddb601e966dd2b79117.js:301:32598
    at <anonymous>
***LOGPROPERTIES:
{"actualType":"object","wp":{"config":{"_settings":{"keys":[],"values":[]}},"graph":{},"sp":{"_options":{},"_baseUrl":""},"storage":{"_local":null,"_session":null}}}

Please help with this ASAP need to deploy this to client live environment.

craghavendra21 avatar Nov 29 '17 12:11 craghavendra21

Which version of the SharePoint Framework are you using in your solution?

waldekmastykarz avatar Nov 29 '17 12:11 waldekmastykarz

Hi @waldekmastykarz below I have pasted my package json details. have installed the latest version of gulp, yomen generator, and miceosoft sharepoint spfx template, I also tried updating all packages to the latest version 1.3.4 still facing the same issue.


{
  "name": "sp-fx-webparts",
  "version": "0.0.1",
  "private": true,
  "engines": {
    "node": ">=0.10.0"
  },
  "scripts": {
    "build": "gulp bundle",
    "clean": "gulp clean",
    "test": "gulp test"
  },
  "dependencies": {
    "@microsoft/sp-core-library": "~1.3.0",
    "@microsoft/sp-lodash-subset": "~1.3.0",
    "@microsoft/sp-webpart-base": "~1.3.0",
    "@types/webpack-env": ">=1.12.1 <1.14.0",
    "angular": "^1.6.2",
    "jquery": "^3.2.1",
    "moment": "^2.19.1",
    "sp-pnp-js": "^3.0.1"
  },
  "devDependencies": {
    "@microsoft/sp-build-web": "~1.3.0",
    "@microsoft/sp-module-interfaces": "~1.3.0",
    "@microsoft/sp-webpart-workbench": "~1.3.0",
    "gulp": "~3.9.1",
    "@types/chai": ">=3.4.34 <3.6.0",
    "@types/mocha": ">=2.2.33 <2.6.0"
  }
}

craghavendra21 avatar Nov 29 '17 16:11 craghavendra21

If you create a new project using generator v1.3.4, all @microsoft packages have version 1.3.4. I'd suggest, you try to find the reason of your issues, by creating a new project and moving your existing components piece by piece to see what's causing the error.

waldekmastykarz avatar Nov 30 '17 06:11 waldekmastykarz

@waldekmastykarz I have created this solution long back. It was working fine, to the same solution I added few new features and tried to deploy and it's started throwing the error. I had a backup of the old solution. So I went and build the old solution and deployed still throwing the same error. Earlier I was able to build and deploy the same solution and it was working now suddenly not getting why the same solution causing the error. should I still proceed to change version and try?

craghavendra21 avatar Nov 30 '17 07:11 craghavendra21

If you created the solution long time ago, it could be that it was created using a pre-release version of the SharePoint Framework, which was working in the past, but got removed at some point, after SPFx reached general availability. I would strongly recommend that you upgrade the solution to any of the supported versions.

waldekmastykarz avatar Nov 30 '17 09:11 waldekmastykarz

@waldekmastykarz this is tenant deployed the web part, just now I checked web part by adding it to another site collection and it worked. The issue is happening only in this site collection. I created new web part using latest framework still on Site A its showing error, and in Site B its working. Any idea why it's like this?

craghavendra21 avatar Nov 30 '17 10:11 craghavendra21

@craghavendra21 are both sites classic or modern (or is one modern and the other classic)?

waldekmastykarz avatar Nov 30 '17 13:11 waldekmastykarz

@waldekmastykarz both are the classic site. one site all version of SPFx web parts are working another site I tested with old and new spfx web part versions but nothing is working.

craghavendra21 avatar Dec 01 '17 04:12 craghavendra21

Could it be that there is something else present on the page that's colliding with SPFx/your web part? Have you checked the Developer Console in your browser for any errors?

waldekmastykarz avatar Dec 04 '17 08:12 waldekmastykarz

There has been no additional responses to this thread. If this is still an issue we need more information to help with it. Please open a new thread with more details about the issue if this is still occurring.

GrahamMcMynn avatar Dec 12 '17 17:12 GrahamMcMynn

@waldekmastykarz I checked the page. except SPFx webpart its not having anything else. Please reopen this issue and resolve.

craghavendra21 avatar Dec 13 '17 04:12 craghavendra21

@craghavendra21 - please include a fiddler trace (or the correlation ID from SPRequestGuid in the response headers) as well as a screen shot of the developer console so we can get more info. Currently we don't have enough information to investigate this issue.

GrahamMcMynn avatar Dec 13 '17 05:12 GrahamMcMynn

Hi I have pasted console window screen shot below

image

image

image

craghavendra21 avatar Dec 13 '17 05:12 craghavendra21

Hi I deleted this page and created page again. and it started working. I guess issue was with the page.

craghavendra21 avatar Dec 13 '17 05:12 craghavendra21

Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues

msft-github-bot avatar Jan 28 '20 18:01 msft-github-bot