Skip to content
This repository has been archived by the owner on Jun 9, 2021. It is now read-only.

🎨 Add common β€œlib” module #35

Closed
wants to merge 18 commits into from
Closed

Conversation

KATT
Copy link
Owner

@KATT KATT commented Mar 19, 2018

#15 - Monorepo setup

  • Create new module lib/, publish as npm module @katt/shop-lib
  • Generate prisma bindings into lib/src/generated
  • Add utility functions to be shared between /web and /api
  • Use utility functions from /lib in api
  • Use utility function from /lib in web 50fbdc4

https://github.com/KATT/shop/tree/feature/lerna

@KATT KATT force-pushed the feature/lerna branch 2 times, most recently from 52559a8 to c54ddd9 Compare March 19, 2018 14:36
@KATT
Copy link
Owner Author

KATT commented Mar 19, 2018

Error details when building `/web`
$ tsc --project tsconfig.server.json && dotenv -- next build
> Using external babel configuration
> Location: "/home/travis/build/[secure]/shop/web/.babelrc"
> Failed to build
{ Error: (client) ../node_modules/graphql-import/dist/index.js
Module not found: Error: Can't resolve 'fs' in '/home/travis/build/[secure]/shop/node_modules/graphql-import/dist'
resolve 'fs' in '/home/travis/build/[secure]/shop/node_modules/graphql-import/dist'
  Parsed request is a module
  using description file: /home/travis/build/[secure]/shop/node_modules/graphql-import/package.json (relative path: ./dist)
    Field 'browser' doesn't contain a valid alias configuration
  after using description file: /home/travis/build/[secure]/shop/node_modules/graphql-import/package.json (relative path: ./dist)
    resolve as module
      looking for modules in /home/travis/build/[secure]/shop/node_modules/next/node_modules
        using description file: /home/travis/build/[secure]/shop/node_modules/next/package.json (relative path: ./node_modules)
          Field 'browser' doesn't contain a valid alias configuration
        after using description file: /home/travis/build/[secure]/shop/node_modules/next/package.json (relative path: ./node_modules)
          using description file: /home/travis/build/[secure]/shop/node_modules/next/package.json (relative path: ./node_modules/fs)
            no extension
              Field 'browser' doesn't contain a valid alias configuration
              /home/travis/build/[secure]/shop/node_modules/next/node_modules/fs doesn't exist
            .js
              Field 'browser' doesn't contain a valid alias configuration
              /home/travis/build/[secure]/shop/node_modules/next/node_modules/fs.js doesn't exist
            .jsx
              Field 'browser' doesn't contain a valid alias configuration
              /home/travis/build/[secure]/shop/node_modules/next/node_modules/fs.jsx doesn't exist
            .json
              Field 'browser' doesn't contain a valid alias configuration
              /home/travis/build/[secure]/shop/node_modules/next/node_modules/fs.json doesn't exist
            .ts
              Field 'browser' doesn't contain a valid alias configuration
              /home/travis/build/[secure]/shop/node_modules/next/node_modules/fs.ts doesn't exist
            .tsx
              Field 'browser' doesn't contain a valid alias configuration
              /home/travis/build/[secure]/shop/node_modules/next/node_modules/fs.tsx doesn't exist
            as directory
              /home/travis/build/[secure]/shop/node_modules/next/node_modules/fs doesn't exist
      /home/travis/build/[secure]/shop/node_modules/graphql-import/dist/node_modules doesn't exist or is not a directory
      /home/travis/build/[secure]/shop/node_modules/graphql-import/node_modules doesn't exist or is not a directory
      /home/travis/build/[secure]/shop/node_modules/node_modules doesn't exist or is not a directory
      /home/travis/build/[secure]/node_modules doesn't exist or is not a directory
      /home/travis/build/node_modules doesn't exist or is not a directory
      /home/travis/node_modules doesn't exist or is not a directory
      /home/node_modules doesn't exist or is not a directory
      /node_modules doesn't exist or is not a directory
      looking for modules in /home/travis/build/[secure]/shop/node_modules
        using description file: /home/travis/build/[secure]/shop/package.json (relative path: ./node_modules)
          Field 'browser' doesn't contain a valid alias configuration
        after using description file: /home/travis/build/[secure]/shop/package.json (relative path: ./node_modules)
          using description file: /home/travis/build/[secure]/shop/package.json (relative path: ./node_modules/fs)
            no extension
              Field 'browser' doesn't contain a valid alias configuration
              /home/travis/build/[secure]/shop/node_modules/fs doesn't exist
            .js
              Field 'browser' doesn't contain a valid alias configuration
              /home/travis/build/[secure]/shop/node_modules/fs.js doesn't exist
            .jsx
              Field 'browser' doesn't contain a valid alias configuration
              /home/travis/build/[secure]/shop/node_modules/fs.jsx doesn't exist
            .json
              Field 'browser' doesn't contain a valid alias configuration
              /home/travis/build/[secure]/shop/node_modules/fs.json doesn't exist
            .ts
              Field 'browser' doesn't contain a valid alias configuration
              /home/travis/build/[secure]/shop/node_modules/fs.ts doesn't exist
            .tsx
              Field 'browser' doesn't contain a valid alias configuration
              /home/travis/build/[secure]/shop/node_modules/fs.tsx doesn't exist
            as directory
              /home/travis/build/[secure]/shop/node_modules/fs doesn't exist
[/home/travis/build/[secure]/shop/node_modules/next/node_modules/fs]
[/home/travis/build/[secure]/shop/node_modules/next/node_modules/fs.js]
[/home/travis/build/[secure]/shop/node_modules/next/node_modules/fs.jsx]
[/home/travis/build/[secure]/shop/node_modules/next/node_modules/fs.json]
[/home/travis/build/[secure]/shop/node_modules/next/node_modules/fs.ts]
[/home/travis/build/[secure]/shop/node_modules/next/node_modules/fs.tsx]
[/home/travis/build/[secure]/shop/node_modules/next/node_modules/fs]
[/home/travis/build/[secure]/shop/node_modules/graphql-import/dist/node_modules]
[/home/travis/build/[secure]/shop/node_modules/graphql-import/node_modules]
[/home/travis/build/[secure]/shop/node_modules/node_modules]
[/home/travis/build/[secure]/node_modules]
[/home/travis/build/node_modules]
[/home/travis/node_modules]
[/home/node_modules]
[/node_modules]
[/home/travis/build/[secure]/shop/node_modules/fs]
[/home/travis/build/[secure]/shop/node_modules/fs.js]
[/home/travis/build/[secure]/shop/node_modules/fs.jsx]
[/home/travis/build/[secure]/shop/node_modules/fs.json]
[/home/travis/build/[secure]/shop/node_modules/fs.ts]
[/home/travis/build/[secure]/shop/node_modules/fs.tsx]
[/home/travis/build/[secure]/shop/node_modules/fs]
 @ ../node_modules/graphql-import/dist/index.js 3:9-22
 @ ../node_modules/prisma-binding/dist/src/Prisma.js
 @ ../node_modules/prisma-binding/dist/src/index.js
 @ ../lib/dist/generated/prisma.js
 @ ../lib/dist/index.js
 @ ./mutations/UpdateOrderRowMutation.tsx
 @ ./components/OrderRowList.tsx
 @ ./components/Checkout.tsx
 @ ./pages/checkout.tsx
 @ multi ./pages/checkout.tsx
    at /home/travis/build/[secure]/shop/node_modules/next/dist/server/build/index.js:207:31
    at runWithDependencies (/home/travis/build/[secure]/shop/node_modules/webpack/lib/MultiCompiler.js:154:4)
    at /home/travis/build/[secure]/shop/node_modules/webpack/node_modules/async/dist/async.js:1126:9
    at /home/travis/build/[secure]/shop/node_modules/webpack/node_modules/async/dist/async.js:473:16
    at iteratorCallback (/home/travis/build/[secure]/shop/node_modules/webpack/node_modules/async/dist/async.js:1050:13)
    at /home/travis/build/[secure]/shop/node_modules/webpack/node_modules/async/dist/async.js:958:16
    at /home/travis/build/[secure]/shop/node_modules/webpack/node_modules/async/dist/async.js:1123:13
    at runCompilers (/home/travis/build/[secure]/shop/node_modules/webpack/lib/MultiCompiler.js:96:47)
    at fn (/home/travis/build/[secure]/shop/node_modules/webpack/lib/MultiCompiler.js:101:6)
    at compiler.run (/home/travis/build/[secure]/shop/node_modules/webpack/lib/MultiCompiler.js:150:5)
    at emitRecords.err (/home/travis/build/[secure]/shop/node_modules/webpack/lib/Compiler.js:265:13)
    at Compiler.emitRecords (/home/travis/build/[secure]/shop/node_modules/webpack/lib/Compiler.js:371:38)
    at emitAssets.err (/home/travis/build/[secure]/shop/node_modules/webpack/lib/Compiler.js:258:10)
    at applyPluginsAsyncSeries1.err (/home/travis/build/[secure]/shop/node_modules/webpack/lib/Compiler.js:364:12)
    at next (/home/travis/build/[secure]/shop/node_modules/tapable/lib/Tapable.js:218:11)
    at Compiler.compiler.plugin (/home/travis/build/[secure]/shop/node_modules/webpack/lib/performance/SizeLimitsPlugin.js:99:4)
  errors: 
   [ '(client) ../node_modules/graphql-import/dist/index.js\nModule not found: Error: Can\'t resolve \'fs\' in \'/home/travis/build/[secure]/shop/node_modules/graphql-import/dist\'\nresolve \'fs\' in \'/home/travis/build/[secure]/shop/node_modules/graphql-import/dist\'\n  Parsed request is a module\n  using description file: /home/travis/build/[secure]/shop/node_modules/graphql-import/package.json (relative path: ./dist)\n    Field \'browser\' doesn\'t contain a valid alias configuration\n  after using description file: /home/travis/build/[secure]/shop/node_modules/graphql-import/package.json (relative path: ./dist)\n    resolve as module\n      looking for modules in /home/travis/build/[secure]/shop/node_modules/next/node_modules\n        using description file: /home/travis/build/[secure]/shop/node_modules/next/package.json (relative path: ./node_modules)\n          Field \'browser\' doesn\'t contain a valid alias configuration\n        after using description file: /home/travis/build/[secure]/shop/node_modules/next/package.json (relative path: ./node_modules)\n          using description file: /home/travis/build/[secure]/shop/node_modules/next/package.json (relative path: ./node_modules/fs)\n            no extension\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/travis/build/[secure]/shop/node_modules/next/node_modules/fs doesn\'t exist\n            .js\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/travis/build/[secure]/shop/node_modules/next/node_modules/fs.js doesn\'t exist\n            .jsx\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/travis/build/[secure]/shop/node_modules/next/node_modules/fs.jsx doesn\'t exist\n            .json\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/travis/build/[secure]/shop/node_modules/next/node_modules/fs.json doesn\'t exist\n            .ts\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/travis/build/[secure]/shop/node_modules/next/node_modules/fs.ts doesn\'t exist\n            .tsx\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/travis/build/[secure]/shop/node_modules/next/node_modules/fs.tsx doesn\'t exist\n            as directory\n              /home/travis/build/[secure]/shop/node_modules/next/node_modules/fs doesn\'t exist\n      /home/travis/build/[secure]/shop/node_modules/graphql-import/dist/node_modules doesn\'t exist or is not a directory\n      /home/travis/build/[secure]/shop/node_modules/graphql-import/node_modules doesn\'t exist or is not a directory\n      /home/travis/build/[secure]/shop/node_modules/node_modules doesn\'t exist or is not a directory\n      /home/travis/build/[secure]/node_modules doesn\'t exist or is not a directory\n      /home/travis/build/node_modules doesn\'t exist or is not a directory\n      /home/travis/node_modules doesn\'t exist or is not a directory\n      /home/node_modules doesn\'t exist or is not a directory\n      /node_modules doesn\'t exist or is not a directory\n      looking for modules in /home/travis/build/[secure]/shop/node_modules\n        using description file: /home/travis/build/[secure]/shop/package.json (relative path: ./node_modules)\n          Field \'browser\' doesn\'t contain a valid alias configuration\n        after using description file: /home/travis/build/[secure]/shop/package.json (relative path: ./node_modules)\n          using description file: /home/travis/build/[secure]/shop/package.json (relative path: ./node_modules/fs)\n            no extension\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/travis/build/[secure]/shop/node_modules/fs doesn\'t exist\n            .js\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/travis/build/[secure]/shop/node_modules/fs.js doesn\'t exist\n            .jsx\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/travis/build/[secure]/shop/node_modules/fs.jsx doesn\'t exist\n            .json\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/travis/build/[secure]/shop/node_modules/fs.json doesn\'t exist\n            .ts\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/travis/build/[secure]/shop/node_modules/fs.ts doesn\'t exist\n            .tsx\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/travis/build/[secure]/shop/node_modules/fs.tsx doesn\'t exist\n            as directory\n              /home/travis/build/[secure]/shop/node_modules/fs doesn\'t exist\n[/home/travis/build/[secure]/shop/node_modules/next/node_modules/fs]\n[/home/travis/build/[secure]/shop/node_modules/next/node_modules/fs.js]\n[/home/travis/build/[secure]/shop/node_modules/next/node_modules/fs.jsx]\n[/home/travis/build/[secure]/shop/node_modules/next/node_modules/fs.json]\n[/home/travis/build/[secure]/shop/node_modules/next/node_modules/fs.ts]\n[/home/travis/build/[secure]/shop/node_modules/next/node_modules/fs.tsx]\n[/home/travis/build/[secure]/shop/node_modules/next/node_modules/fs]\n[/home/travis/build/[secure]/shop/node_modules/graphql-import/dist/node_modules]\n[/home/travis/build/[secure]/shop/node_modules/graphql-import/node_modules]\n[/home/travis/build/[secure]/shop/node_modules/node_modules]\n[/home/travis/build/[secure]/node_modules]\n[/home/travis/build/node_modules]\n[/home/travis/node_modules]\n[/home/node_modules]\n[/node_modules]\n[/home/travis/build/[secure]/shop/node_modules/fs]\n[/home/travis/build/[secure]/shop/node_modules/fs.js]\n[/home/travis/build/[secure]/shop/node_modules/fs.jsx]\n[/home/travis/build/[secure]/shop/node_modules/fs.json]\n[/home/travis/build/[secure]/shop/node_modules/fs.ts]\n[/home/travis/build/[secure]/shop/node_modules/fs.tsx]\n[/home/travis/build/[secure]/shop/node_modules/fs]\n @ ../node_modules/graphql-import/dist/index.js 3:9-22\n @ ../node_modules/prisma-binding/dist/src/Prisma.js\n @ ../node_modules/prisma-binding/dist/src/index.js\n @ ../lib/dist/generated/prisma.js\n @ ../lib/dist/index.js\n @ ./mutations/UpdateOrderRowMutation.tsx\n @ ./components/OrderRowList.tsx\n @ ./components/Checkout.tsx\n @ ./pages/checkout.tsx\n @ multi ./pages/checkout.tsx' ],
  warnings: 
   [ '(client) ../node_modules/ws/lib/BufferUtil.js\nModule not found: Error: Can\'t resolve \'bufferutil\' in \'/home/travis/build/[secure]/shop/node_modules/ws/lib\'\nresolve \'bufferutil\' in \'/home/travis/build/[secure]/shop/node_modules/ws/lib\'\n  Parsed request is a module\n  using description file: /home/travis/build/[secure]/shop/node_modules/ws/package.json (relative path: ./lib)\n    Field \'browser\' doesn\'t contain a valid alias configuration\n  after using description file: /home/travis/build/[secure]/shop/node_modules/ws/package.json (relative path: ./lib)\n    resolve as module\n      looking for modules in /home/travis/build/[secure]/shop/node_modules/next/node_modules\n        using description file: /home/travis/build/[secure]/shop/node_modules/next/package.json (relative path: ./node_modules)\n          Field \'browser\' doesn\'t contain a valid alias configuration\n        after using description file: /home/travis/build/[secure]/shop/node_modules/next/package.json (relative path: ./node_modules)\n          using description file: /home/travis/build/[secure]/shop/node_modules/next/package.json (relative path: ./node_modules/bufferutil)\n            no extension\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/travis/build/[secure]/shop/node_modules/next/node_modules/bufferutil doesn\'t exist\n            .js\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/travis/build/[secure]/shop/node_modules/next/node_modules/bufferutil.js doesn\'t exist\n            .jsx\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/travis/build/[secure]/shop/node_modules/next/node_modules/bufferutil.jsx doesn\'t exist\n            .json\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/travis/build/[secure]/shop/node_modules/next/node_modules/bufferutil.json doesn\'t exist\n            .ts\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/travis/build/[secure]/shop/node_modules/next/node_modules/bufferutil.ts doesn\'t exist\n            .tsx\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/travis/build/[secure]/shop/node_modules/next/node_modules/bufferutil.tsx doesn\'t exist\n            as directory\n              /home/travis/build/[secure]/shop/node_modules/next/node_modules/bufferutil doesn\'t exist\n      /home/travis/build/[secure]/shop/node_modules/ws/lib/node_modules doesn\'t exist or is not a directory\n      /home/travis/build/[secure]/shop/node_modules/ws/node_modules doesn\'t exist or is not a directory\n      /home/travis/build/[secure]/shop/node_modules/node_modules doesn\'t exist or is not a directory\n      /home/travis/build/[secure]/node_modules doesn\'t exist or is not a directory\n      /home/travis/build/node_modules doesn\'t exist or is not a directory\n      /home/travis/node_modules doesn\'t exist or is not a directory\n      /home/node_modules doesn\'t exist or is not a directory\n      /node_modules doesn\'t exist or is not a directory\n      looking for modules in /home/travis/build/[secure]/shop/node_modules\n        using description file: /home/travis/build/[secure]/shop/package.json (relative path: ./node_modules)\n          Field \'browser\' doesn\'t contain a valid alias configuration\n        after using description file: /home/travis/build/[secure]/shop/package.json (relative path: ./node_modules)\n          using description file: /home/travis/build/[secure]/shop/package.json (relative path: ./node_modules/bufferutil)\n            no extension\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/travis/build/[secure]/shop/node_modules/bufferutil doesn\'t exist\n            .js\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/travis/build/[secure]/shop/node_modules/bufferutil.js doesn\'t exist\n            .jsx\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/travis/build/[secure]/shop/node_modules/bufferutil.jsx doesn\'t exist\n            .json\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/travis/build/[secure]/shop/node_modules/bufferutil.json doesn\'t exist\n            .ts\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/travis/build/[secure]/shop/node_modules/bufferutil.ts doesn\'t exist\n            .tsx\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/travis/build/[secure]/shop/node_modules/bufferutil.tsx doesn\'t exist\n            as directory\n              /home/travis/build/[secure]/shop/node_modules/bufferutil doesn\'t exist\n[/home/travis/build/[secure]/shop/node_modules/next/node_modules/bufferutil]\n[/home/travis/build/[secure]/shop/node_modules/next/node_modules/bufferutil.js]\n[/home/travis/build/[secure]/shop/node_modules/next/node_modules/bufferutil.jsx]\n[/home/travis/build/[secure]/shop/node_modules/next/node_modules/bufferutil.json]\n[/home/travis/build/[secure]/shop/node_modules/next/node_modules/bufferutil.ts]\n[/home/travis/build/[secure]/shop/node_modules/next/node_modules/bufferutil.tsx]\n[/home/travis/build/[secure]/shop/node_modules/next/node_modules/bufferutil]\n[/home/travis/build/[secure]/shop/node_modules/ws/lib/node_modules]\n[/home/travis/build/[secure]/shop/node_modules/ws/node_modules]\n[/home/travis/build/[secure]/shop/node_modules/node_modules]\n[/home/travis/build/[secure]/node_modules]\n[/home/travis/build/node_modules]\n[/home/travis/node_modules]\n[/home/node_modules]\n[/node_modules]\n[/home/travis/build/[secure]/shop/node_modules/bufferutil]\n[/home/travis/build/[secure]/shop/node_modules/bufferutil.js]\n[/home/travis/build/[secure]/shop/node_modules/bufferutil.jsx]\n[/home/travis/build/[secure]/shop/node_modules/bufferutil.json]\n[/home/travis/build/[secure]/shop/node_modules/bufferutil.ts]\n[/home/travis/build/[secure]/shop/node_modules/bufferutil.tsx]\n[/home/travis/build/[secure]/shop/node_modules/bufferutil]\n @ ../node_modules/ws/lib/BufferUtil.js 35:21-42\n @ ../node_modules/ws/lib/Receiver.js\n @ ../node_modules/ws/index.js\n @ ../node_modules/prisma-binding/dist/src/link.js\n @ ../node_modules/prisma-binding/dist/src/index.js\n @ ../lib/dist/generated/prisma.js\n @ ../lib/dist/index.js\n @ ./mutations/UpdateOrderRowMutation.tsx\n @ ./components/OrderRowList.tsx\n @ ./components/Checkout.tsx\n @ ./pages/checkout.tsx\n @ multi ./pages/checkout.tsx',
     '(client) ../node_modules/ws/lib/Validation.js\nModule not found: Error: Can\'t resolve \'utf-8-validate\' in \'/home/travis/build/[secure]/shop/node_modules/ws/lib\'\nresolve \'utf-8-validate\' in \'/home/travis/build/[secure]/shop/node_modules/ws/lib\'\n  Parsed request is a module\n  using description file: /home/travis/build/[secure]/shop/node_modules/ws/package.json (relative path: ./lib)\n    Field \'browser\' doesn\'t contain a valid alias configuration\n  after using description file: /home/travis/build/[secure]/shop/node_modules/ws/package.json (relative path: ./lib)\n    resolve as module\n      looking for modules in /home/travis/build/[secure]/shop/node_modules/next/node_modules\n        using description file: /home/travis/build/[secure]/shop/node_modules/next/package.json (relative path: ./node_modules)\n          Field \'browser\' doesn\'t contain a valid alias configuration\n        after using description file: /home/travis/build/[secure]/shop/node_modules/next/package.json (relative path: ./node_modules)\n          using description file: /home/travis/build/[secure]/shop/node_modules/next/package.json (relative path: ./node_modules/utf-8-validate)\n            no extension\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/travis/build/[secure]/shop/node_modules/next/node_modules/utf-8-validate doesn\'t exist\n            .js\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/travis/build/[secure]/shop/node_modules/next/node_modules/utf-8-validate.js doesn\'t exist\n            .jsx\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/travis/build/[secure]/shop/node_modules/next/node_modules/utf-8-validate.jsx doesn\'t exist\n            .json\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/travis/build/[secure]/shop/node_modules/next/node_modules/utf-8-validate.json doesn\'t exist\n            .ts\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/travis/build/[secure]/shop/node_modules/next/node_modules/utf-8-validate.ts doesn\'t exist\n            .tsx\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/travis/build/[secure]/shop/node_modules/next/node_modules/utf-8-validate.tsx doesn\'t exist\n            as directory\n              /home/travis/build/[secure]/shop/node_modules/next/node_modules/utf-8-validate doesn\'t exist\n      /home/travis/build/[secure]/shop/node_modules/ws/lib/node_modules doesn\'t exist or is not a directory\n      /home/travis/build/[secure]/shop/node_modules/ws/node_modules doesn\'t exist or is not a directory\n      /home/travis/build/[secure]/shop/node_modules/node_modules doesn\'t exist or is not a directory\n      /home/travis/build/[secure]/node_modules doesn\'t exist or is not a directory\n      /home/travis/build/node_modules doesn\'t exist or is not a directory\n      /home/travis/node_modules doesn\'t exist or is not a directory\n      /home/node_modules doesn\'t exist or is not a directory\n      /node_modules doesn\'t exist or is not a directory\n      looking for modules in /home/travis/build/[secure]/shop/node_modules\n        using description file: /home/travis/build/[secure]/shop/package.json (relative path: ./node_modules)\n          Field \'browser\' doesn\'t contain a valid alias configuration\n        after using description file: /home/travis/build/[secure]/shop/package.json (relative path: ./node_modules)\n          using description file: /home/travis/build/[secure]/shop/package.json (relative path: ./node_modules/utf-8-validate)\n            no extension\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/travis/build/[secure]/shop/node_modules/utf-8-validate doesn\'t exist\n            .js\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/travis/build/[secure]/shop/node_modules/utf-8-validate.js doesn\'t exist\n            .jsx\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/travis/build/[secure]/shop/node_modules/utf-8-validate.jsx doesn\'t exist\n            .json\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/travis/build/[secure]/shop/node_modules/utf-8-validate.json doesn\'t exist\n            .ts\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/travis/build/[secure]/shop/node_modules/utf-8-validate.ts doesn\'t exist\n            .tsx\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/travis/build/[secure]/shop/node_modules/utf-8-validate.tsx doesn\'t exist\n            as directory\n              /home/travis/build/[secure]/shop/node_modules/utf-8-validate doesn\'t exist\n[/home/travis/build/[secure]/shop/node_modules/next/node_modules/utf-8-validate]\n[/home/travis/build/[secure]/shop/node_modules/next/node_modules/utf-8-validate.js]\n[/home/travis/build/[secure]/shop/node_modules/next/node_modules/utf-8-validate.jsx]\n[/home/travis/build/[secure]/shop/node_modules/next/node_modules/utf-8-validate.json]\n[/home/travis/build/[secure]/shop/node_modules/next/node_modules/utf-8-validate.ts]\n[/home/travis/build/[secure]/shop/node_modules/next/node_modules/utf-8-validate.tsx]\n[/home/travis/build/[secure]/shop/node_modules/next/node_modules/utf-8-validate]\n[/home/travis/build/[secure]/shop/node_modules/ws/lib/node_modules]\n[/home/travis/build/[secure]/shop/node_modules/ws/node_modules]\n[/home/travis/build/[secure]/shop/node_modules/node_modules]\n[/home/travis/build/[secure]/node_modules]\n[/home/travis/build/node_modules]\n[/home/travis/node_modules]\n[/home/node_modules]\n[/node_modules]\n[/home/travis/build/[secure]/shop/node_modules/utf-8-validate]\n[/home/travis/build/[secure]/shop/node_modules/utf-8-validate.js]\n[/home/travis/build/[secure]/shop/node_modules/utf-8-validate.jsx]\n[/home/travis/build/[secure]/shop/node_modules/utf-8-validate.json]\n[/home/travis/build/[secure]/shop/node_modules/utf-8-validate.ts]\n[/home/travis/build/[secure]/shop/node_modules/utf-8-validate.tsx]\n[/home/travis/build/[secure]/shop/node_modules/utf-8-validate]\n @ ../node_modules/ws/lib/Validation.js 10:22-47\n @ ../node_modules/ws/lib/Receiver.js\n @ ../node_modules/ws/index.js\n @ ../node_modules/prisma-binding/dist/src/link.js\n @ ../node_modules/prisma-binding/dist/src/index.js\n @ ../lib/dist/generated/prisma.js\n @ ../lib/dist/index.js\n @ ./mutations/UpdateOrderRowMutation.tsx\n @ ./components/OrderRowList.tsx\n @ ./components/Checkout.tsx\n @ ./pages/checkout.tsx\n @ multi ./pages/checkout.tsx' ] }
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
ERROR: "build:web" exited with 1.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
The command "yarn build" failed and exited with 1 during .
Your build has been stopped.

@KATT KATT closed this Apr 27, 2018
@KATT KATT deleted the feature/lerna branch April 27, 2018 11:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant