try require instead of import

This commit is contained in:
Raghunandan Balachandran
2020-02-07 14:37:28 +01:00
parent 17e60d92e3
commit 6f4b7d9c93
@@ -4,7 +4,8 @@ import { useFormik } from 'formik';
import { Button, TextField, makeStyles } from '@material-ui/core';
import { InfoCard } from '@backstage/core';
import { scaffolderV1 } from '@backstage/protobuf-definitions';
import * as google_protobuf_struct_pb from 'google-protobuf/google/protobuf/struct_pb.js';
const google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js');
// import * as google_protobuf_struct_pb from 'google-protobuf/google/protobuf/struct_pb.js';
const useStyles = makeStyles(theme => ({
formGroup: {