Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown compiler option 'allowJS'" during build of the solution #2

Open
MeenaMakwana opened this issue Oct 24, 2018 · 3 comments
Open

Comments

@MeenaMakwana
Copy link

I am facing the error" Unknown compiler option 'allowJS'" during build of the solution. Please find attached config file and error description. I have updated config file, but the issue still persist. It will be great if you can suggest proper steps for execution. Thank you

tsconfig - Copy.json.txt
tslint - Copy.json.txt
Issue - react-hubsite-securitytrim-navbar.txt

2018-10-24T19_09_51_289Z-debug.log

@bcameron1231
Copy link
Owner

Hi, can you try 'allowJs' with a lowercase s?

@MeenaMakwana
Copy link
Author

I did, but no change. Still not working.

log 25102018 1114.txt

@MeenaMakwana
Copy link
Author

Hi,

Thank you for your reply.

In order to get succeed, I have connected my laptop to other WIFI having no proxy. I have downloaded the source code from https://github.com/bcameron1231/SharePoint-Framework/releases/tag/v2.0 and run below command. I haven’t modify this code after download.
• npm i
• gulp serve --nobrowser
While running gulp serve –nobrowser, I have come across 2 errors and several warnings.
Errors are :
[17:20:38] Warning - tslint - src\extensions\reactHubsiteNavbar\services\SPSearchService.ts(88,51): error semicolon: Missing semicolon
[17:20:40] Error - typescript - src\extensions\reactHubsiteNavbar\ReactHubsiteNavbarApplicationCustomizer.ts(12,45): error TS2307: Cannot find module 'sp-pnp-js'.
[17:20:40] Error - typescript - src\extensions\reactHubsiteNavbar\ReactHubsiteNavbarApplicationCustomizer.ts(17,46): error TS2307: Cannot find module '../../../lib/extensions/reactHubsiteNavbar/services/SPSearchService'.
[17:20:40] Warning - tslint - src\extensions\reactHubsiteNavbar\components\HubNavBar.tsx(29,116): error semicolon: Missing semicolon
[17:20:40] Warning - tslint - src\extensions\reactHubsiteNavbar\components\HubNavBar.tsx(40,112): error semicolon: Missing semicolon
[17:20:40] Warning - tslint - src\extensions\reactHubsiteNavbar\components\HubNavBar.tsx(93,10): error semicolon: Missing semicolon

I have updated your code to fix SPSearchService error. And Install "sp-pnp-js" using command “npm install sp-pnp-js –save” for 'sp-pnp-js'. I haven't done anything to fix this warnings.

After making this changes, I was able to build the solution but while verification before deployment I am facing new error.

Verification link is :- https://XXX.sharepoint.com/sites/TEST-0365Template? loadSPFX=true&debugManifestsFile=https://localhost:4321/temp/manifests.js&customActions={"1859a5f8-d2fc-4c55-91ba-a097edf6da00":{"location":"ClientSideExtension.ApplicationCustomizer","properties":{"NavHeading":"TEST-0365Template"}}}

here https://XXX.sharepoint.com/sites/TEST-0365Template is modern site connected to https://XXX.sharepoint.com/sites/TEST_HUb_site

Error I am facing now is : -

***Error loading debug manifests.
***Error loading debug script. Ensure the server is running and the "debugManifestsFile" parameter URL is correct.

It will be great if you can help me to fix this issue. Many thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants