Plugin normal functionality needs to read the aws-exports for a variety of reasons.
amplify-graphql-seed-plugin attempts to read any aws export files identified via the ${srcFolder}/**/aws-exports.* regex.
If the current amplify project is typed (uses type TypeScript) a src/aws-exports.d.ts file will be generated.
Example of our project:
aws-exports.d.ts
aws-exports.js
This means that the plugin attempts to import a .ts file and crashes with Invalid or unexpected token.

The Invalid or unexpected token error is from line 84 in the same utils/directory-functions::getAwsExports function:
return require(awsExportsFile).default
Please modify the file system regex to exclude .ts files.
Plugin normal functionality needs to read the
aws-exportsfor a variety of reasons.amplify-graphql-seed-pluginattempts to read any aws export files identified via the${srcFolder}/**/aws-exports.*regex.If the current amplify project is typed (uses type TypeScript) a
src/aws-exports.d.tsfile will be generated.Example of our project:
This means that the plugin attempts to import a .ts file and crashes with

Invalid or unexpected token.The
Invalid or unexpected tokenerror is from line 84 in the sameutils/directory-functions::getAwsExportsfunction:Please modify the file system regex to exclude .ts files.