SOLVED

Updating a SPFx app: Can't find FC-namespace

%3CLINGO-SUB%20id%3D%22lingo-sub-170681%22%20slang%3D%22en-US%22%3EUpdating%20a%20SPFx%20app%3A%20Can't%20find%20FC-namespace%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-170681%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%0A%3CP%3EI%20am%20trying%20to%20update%20this%20application%3A%26nbsp%3B%3CA%20title%3D%22Js%20Modern%20Calendar%22%20href%3D%22https%3A%2F%2Fgithub.com%2FSharePoint%2Fsp-dev-fx-webparts%2Ftree%2Fmaster%2Fsamples%2Fjs-modern-calendar%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ejs-modern-calendar%3C%2FA%3E%26nbsp%3Band%20I%20found%20that%20it%20is%20using%20a%20namespace%20that%20I%20can't%20find%2C%20it%20is%20%22FC%22%20and%20the%20app%20is%20calling%20a%20method%20in%20this%20namespace%20called%20%22EventObject()%22%20in%20the%20%22ModernCalendarWebPart.ts%22-file%20in%20the%20row%2039.%20The%20app%20isn't%20written%20with%20the%20last%20SPFx%20version%20and%20that's%20why%20I%20am%20trying%20to%20update%20it.%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20started%20from%20a%20scratch%20proyect%20created%20with%20%22yo%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F41501%22%20target%3D%22_blank%22%3E%40microsoft%3C%2FA%3E%2Fsharepoint%22%20but%20I%20am%20fast%20since%20I%20can't%20find%20the%20%22FC%22%20namespace.%3C%2FP%3E%0A%3CP%3EAny%20idea%20where%20is%20this%20namespace%20comming%20from%3F%20or%20what%20package%20I%20need%20to%20install%20to%20have%20access%20to%20it%3F%3C%2FP%3E%0A%3CP%3EI%20have%20checked%20the%20package.json%20and%20both%20looks%20similar%2C%20the%20differences%20are%20the%20version%20numbers%2C%20mine%20are%20newer%20than%20the%20one%20used%20in%20the%20original%20app.%3C%2FP%3E%0A%3CP%3EBest%20regards%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-203916%22%20slang%3D%22en-US%22%3ERe%3A%20Updating%20a%20SPFx%20app%3A%20Can't%20find%20FC-namespace%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-203916%22%20slang%3D%22en-US%22%3E%3CP%3EFC%20is%20the%20namespace%20used%20by%20the%20fullcalendar%20plugin.%20I%20had%20the%20same%20issue%20when%20trying%20to%20get%20the%20sample%20to%20work%20and%20was%20able%20to%20resolve%20it%20by%26nbsp%3Bspecifying%26nbsp%3Bdependency%20'fullcalendar'%20to%203.2.0%20(not%20%5E3.2.0).%20By%20default%20npm%20install%20grabs%20the%20latest%20fullcalendar%20which%20breaks%20the%20app%2C%20but%203.2.0%20seems%20to%20work.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Regular Contributor

Hi,

I am trying to update this application: js-modern-calendar and I found that it is using a namespace that I can't find, it is "FC" and the app is calling a method in this namespace called "EventObject()" in the "ModernCalendarWebPart.ts"-file in the row 39. The app isn't written with the last SPFx version and that's why I am trying to update it. 

I started from a scratch proyect created with "yo @microsoft/sharepoint" but I am fast since I can't find the "FC" namespace.

Any idea where is this namespace comming from? or what package I need to install to have access to it?

I have checked the package.json and both looks similar, the differences are the version numbers, mine are newer than the one used in the original app.

Best regards

 

1 Reply
Highlighted
Solution

FC is the namespace used by the fullcalendar plugin. I had the same issue when trying to get the sample to work and was able to resolve it by specifying dependency 'fullcalendar' to 3.2.0 (not ^3.2.0). By default npm install grabs the latest fullcalendar which breaks the app, but 3.2.0 seems to work.