Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/revmischa/amplify-ssr-next-middleware-repro
Next 12 middleware with amplify SSR breakage
https://github.com/revmischa/amplify-ssr-next-middleware-repro
Last synced: 3 days ago
JSON representation
Next 12 middleware with amplify SSR breakage
- Host: GitHub
- URL: https://github.com/revmischa/amplify-ssr-next-middleware-repro
- Owner: revmischa
- Created: 2022-07-29T00:41:31.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-07-29T00:47:09.000Z (over 2 years ago)
- Last Synced: 2024-10-18T07:52:24.970Z (3 months ago)
- Language: TypeScript
- Size: 56.6 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Reproduction repo for https://github.com/aws-amplify/amplify-js/issues/9145
## Instructions
```
pnpm install
pnpm build
```The only addition to create-next-app is the file `middleware.ts`.
## Error
```
info - SWC minify release candidate enabled. https://nextjs.link/swcmin
info - Linting and checking validity of types
info - Creating an optimized production build
Failed to compile../node_modules/.pnpm/@[email protected]/node_modules/@aws-amplify/core/lib-esm/JS.js
Dynamic Code Evaluation (e. g. 'eval', 'new Function', 'WebAssembly.compile') not allowed in Edge RuntimeImport trace for requested module:
./node_modules/.pnpm/@[email protected]/node_modules/@aws-amplify/core/lib-esm/index.js
./node_modules/.pnpm/[email protected]/node_modules/aws-amplify/lib-esm/withSSRContext.js
./middleware.ts./node_modules/.pnpm/[email protected]/node_modules/amazon-cognito-identity-js/es/Client.js
Dynamic Code Evaluation (e. g. 'eval', 'new Function', 'WebAssembly.compile') not allowed in Edge RuntimeImport trace for requested module:
./node_modules/.pnpm/[email protected]/node_modules/amazon-cognito-identity-js/es/CognitoUserPool.js
./node_modules/.pnpm/[email protected]/node_modules/amazon-cognito-identity-js/es/index.js
./node_modules/.pnpm/@[email protected]/node_modules/@aws-amplify/auth/lib-esm/index.js
./node_modules/.pnpm/[email protected]/node_modules/aws-amplify/lib-esm/withSSRContext.js
./middleware.ts./node_modules/.pnpm/[email protected]/node_modules/immer/dist/immer.esm.js
Dynamic Code Evaluation (e. g. 'eval', 'new Function', 'WebAssembly.compile') not allowed in Edge RuntimeImport trace for requested module:
./node_modules/.pnpm/@[email protected]/node_modules/@aws-amplify/datastore/lib-esm/util.js
./node_modules/.pnpm/@[email protected]/node_modules/@aws-amplify/datastore/lib-esm/index.js
./node_modules/.pnpm/[email protected]/node_modules/aws-amplify/lib-esm/withSSRContext.js
./middleware.ts./node_modules/.pnpm/[email protected]/node_modules/lodash/_root.js
Dynamic Code Evaluation (e. g. 'eval', 'new Function', 'WebAssembly.compile') not allowed in Edge RuntimeImport trace for requested module:
./node_modules/.pnpm/[email protected]/node_modules/lodash/isBuffer.js
./node_modules/.pnpm/[email protected]/node_modules/lodash/isEmpty.js
./node_modules/.pnpm/@[email protected]/node_modules/@aws-amplify/analytics/lib-esm/Providers/AmazonPersonalizeProvider.js
./node_modules/.pnpm/@[email protected]/node_modules/@aws-amplify/analytics/lib-esm/Providers/index.js
./node_modules/.pnpm/@[email protected]/node_modules/@aws-amplify/analytics/lib-esm/index.js
./node_modules/.pnpm/[email protected]/node_modules/aws-amplify/lib-esm/index.js
./node_modules/.pnpm/[email protected]/node_modules/aws-amplify/lib-esm/withSSRContext.js
./middleware.ts./node_modules/.pnpm/[email protected]/node_modules/graphql/error/GraphQLError.mjs
Dynamic Code Evaluation (e. g. 'eval', 'new Function', 'WebAssembly.compile') not allowed in Edge RuntimeImport trace for requested module:
./node_modules/.pnpm/[email protected]/node_modules/graphql/error/index.mjs
./node_modules/.pnpm/[email protected]/node_modules/graphql/index.mjs
./node_modules/.pnpm/@[email protected]/node_modules/@aws-amplify/api-graphql/lib-esm/GraphQLAPI.js
./node_modules/.pnpm/@[email protected]/node_modules/@aws-amplify/api-graphql/lib-esm/index.js
./node_modules/.pnpm/@[email protected]/node_modules/@aws-amplify/api/lib-esm/index.js
./node_modules/.pnpm/[email protected]/node_modules/aws-amplify/lib-esm/withSSRContext.js
./middleware.ts
```