Any know how to fix this component compile error?

DrewW
Mega Sage
Mega Sage

Any know how to fix this component compile error?  I'm trying to use the "now-card" component in mine and I have done an npm install for it and the project was not built with the "--offline" options.  I have been digging around and cannot seam to find a solution for it.

 

Any help would be appreciated.

 

Failed to compile
../node_modules/@servicenow/now-button/src/now-button-bare.js 11:3
Module parse failed: Unexpected token (11:3)
File was processed with these loaders:
* ../node_modules/source-map-loader/index.js
You may need an additional loader to handle the result of these loaders.
| if (icon) {
| return (
> <now-icon
| className={
| size === 'lg'
This error occurred during the build time and cannot be dismissed.
0 REPLIES 0