Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bundling doesn't work (ioredis) #56

Open
BryanCrotaz opened this issue Sep 10, 2019 · 3 comments
Open

Bundling doesn't work (ioredis) #56

BryanCrotaz opened this issue Sep 10, 2019 · 3 comments

Comments

@BryanCrotaz
Copy link

{ ModuleNotFoundError: Module not found: Error: Can't resolve 'ioredis' in '/var/lib/shippable/build/IN/sc-pp-backend-repo-master/gitRepo/node_modules/@iopipe/trace/dist/plugins'
at factory.create (/var/lib/shippable/build/IN/sc-pp-backend-repo-master/gitRepo/node_modules/webpack/lib/Compilation.js:888:10)
at factory (/var/lib/shippable/build/IN/sc-pp-backend-repo-master/gitRepo/node_modules/webpack/lib/NormalModuleFactory.js:401:22)
at resolver (/var/lib/shippable/build/IN/sc-pp-backend-repo-master/gitRepo/node_modules/webpack/lib/NormalModuleFactory.js:130:21)
at asyncLib.parallel (/var/lib/shippable/build/IN/sc-pp-backend-repo-master/gitRepo/node_modules/webpack/lib/NormalModuleFactory.js:224:22)
at /var/lib/shippable/build/IN/sc-pp-backend-repo-master/gitRepo/node_modules/neo-async/async.js:2830:7
at /var/lib/shippable/build/IN/sc-pp-backend-repo-master/gitRepo/node_modules/neo-async/async.js:6877:13
at normalResolver.resolve (/var/lib/shippable/build/IN/sc-pp-backend-repo-master/gitRepo/node_modules/webpack/lib/NormalModuleFactory.js:214:25)
at doResolve (/var/lib/shippable/build/IN/sc-pp-backend-repo-master/gitRepo/node_modules/enhanced-resolve/lib/Resolver.js:184:12)
at hook.callAsync (/var/lib/shippable/build/IN/sc-pp-backend-repo-master/gitRepo/node_modules/enhanced-resolve/lib/Resolver.js:238:5)
at _fn0 (eval at create (/var/lib/shippable/build/IN/sc-pp-backend-repo-master/gitRepo/node_modules/tapable/lib/HookCodeFactory.js:33:10), :15:1)
name: 'BuildError',
isBuilderError: true,
isSilent: undefined,
isCancellation: undefined,
broccoliPayload:
{ originalError:
ModuleNotFoundError: Module not found: Error: Can't resolve 'ioredis' in '/var/lib/shippable/build/IN/sc-pp-backend-repo-master/gitRepo/node_modules/@iopipe/trace/dist/plugins'
at factory.create (/var/lib/shippable/build/IN/sc-pp-backend-repo-master/gitRepo/node_modules/webpack/lib/Compilation.js:888:10)
at factory (/var/lib/shippable/build/IN/sc-pp-backend-repo-master/gitRepo/node_modules/webpack/lib/NormalModuleFactory.js:401:22)
at resolver (/var/lib/shippable/build/IN/sc-pp-backend-repo-master/gitRepo/node_modules/webpack/lib/NormalModuleFactory.js:130:21)
at asyncLib.parallel (/var/lib/shippable/build/IN/sc-pp-backend-repo-master/gitRepo/node_modules/webpack/lib/NormalModuleFactory.js:224:22)
at /var/lib/shippable/build/IN/sc-pp-backend-repo-master/gitRepo/node_modules/neo-async/async.js:2830:7
at /var/lib/shippable/build/IN/sc-pp-backend-repo-master/gitRepo/node_modules/neo-async/async.js:6877:13
at normalResolver.resolve (/var/lib/shippable/build/IN/sc-pp-backend-repo-master/gitRepo/node_modules/webpack/lib/NormalModuleFactory.js:214:25)
at doResolve (/var/lib/shippable/build/IN/sc-pp-backend-repo-master/gitRepo/node_modules/enhanced-resolve/lib/Resolver.js:184:12)
at hook.callAsync (/var/lib/shippable/build/IN/sc-pp-backend-repo-master/gitRepo/node_modules/enhanced-resolve/lib/Resolver.js:238:5)
at _fn0 (eval at create (/var/lib/shippable/build/IN/sc-pp-backend-repo-master/gitRepo/node_modules/tapable/lib/HookCodeFactory.js:33:10), :15:1)
resolve 'ioredis' in '/var/lib/shippable/build/IN/sc-pp-backend-repo-master/gitRepo/node_modules/@iopipe/trace/dist/plugins'
Parsed request is a module
using description file: /var/lib/shippable/build/IN/sc-pp-backend-repo-master/gitRepo/node_modules/@iopipe/trace/package.json (relative path: ./dist/plugins)
resolve as module
/var/lib/shippable/build/IN/sc-pp-backend-repo-master/gitRepo/node_modules/@iopipe/trace/dist/plugins/node_modules doesn't exist or is not a directory
/var/lib/shippable/build/IN/sc-pp-backend-repo-master/gitRepo/node_modules/@iopipe/trace/dist/node_modules doesn't exist or is not a directory
/var/lib/shippable/build/IN/sc-pp-backend-repo-master/gitRepo/node_modules/@iopipe/node_modules doesn't exist or is not a directory
/var/lib/shippable/build/IN/sc-pp-backend-repo-master/gitRepo/node_modules/node_modules doesn't exist or is not a directory
/var/lib/shippable/build/IN/sc-pp-backend-repo-master/node_modules doesn't exist or is not a directory
/var/lib/shippable/build/IN/node_modules doesn't exist or is not a directory
/var/lib/shippable/build/node_modules doesn't exist or is not a directory
/var/lib/shippable/node_modules doesn't exist or is not a directory
/var/lib/node_modules doesn't exist or is not a directory
/var/node_modules doesn't exist or is not a directory
/node_modules doesn't exist or is not a directory
looking for modules in /var/lib/shippable/build/IN/sc-pp-backend-repo-master/gitRepo/node_modules/@iopipe/trace/node_modules
using description file: /var/lib/shippable/build/IN/sc-pp-backend-repo-master/gitRepo/node_modules/@iopipe/trace/package.json (relative path: ./node_modules)
using description file: /var/lib/shippable/build/IN/sc-pp-backend-repo-master/gitRepo/node_modules/@iopipe/trace/package.json (relative path: ./node_modules/ioredis)
no extension
/var/lib/shippable/build/IN/sc-pp-backend-repo-master/gitRepo/node_modules/@iopipe/trace/node_modules/ioredis doesn't exist
looking for modules in /var/lib/shippable/build/IN/sc-pp-backend-repo-master/gitRepo/node_modules
using description file: /var/lib/shippable/build/IN/sc-pp-backend-repo-master/gitRepo/package.json (relative path: ./node_modules)
using description file: /var/lib/shippable/build/IN/sc-pp-backend-repo-master/gitRepo/package.json (relative path: ./node_modules/ioredis)
no extension
/var/lib/shippable/build/IN/sc-pp-backend-repo-master/gitRepo/node_modules/ioredis doesn't exist
.wasm
/var/lib/shippable/build/IN/sc-pp-backend-repo-master/gitRepo/node_modules/@iopipe/trace/node_modules/ioredis.wasm doesn't exist
.wasm
/var/lib/shippable/build/IN/sc-pp-backend-repo-master/gitRepo/node_modules/ioredis.wasm doesn't exist
.mjs
/var/lib/shippable/build/IN/sc-pp-backend-repo-master/gitRepo/node_modules/@iopipe/trace/node_modules/ioredis.mjs doesn't exist
.mjs
/var/lib/shippable/build/IN/sc-pp-backend-repo-master/gitRepo/node_modules/ioredis.mjs doesn't exist
.js
/var/lib/shippable/build/IN/sc-pp-backend-repo-master/gitRepo/node_modules/@iopipe/trace/node_modules/ioredis.js doesn't exist
.js
/var/lib/shippable/build/IN/sc-pp-backend-repo-master/gitRepo/node_modules/ioredis.js doesn't exist
.json
/var/lib/shippable/build/IN/sc-pp-backend-repo-master/gitRepo/node_modules/@iopipe/trace/node_modules/ioredis.json doesn't exist
.json
/var/lib/shippable/build/IN/sc-pp-backend-repo-master/gitRepo/node_modules/ioredis.json doesn't exist
as directory
/var/lib/shippable/build/IN/sc-pp-backend-repo-master/gitRepo/node_modules/@iopipe/trace/node_modules/ioredis doesn't exist
as directory
/var/lib/shippable/build/IN/sc-pp-backend-repo-master/gitRepo/node_modules/ioredis doesn't exist,
originalMessage:
'Module not found: Error: Can't resolve 'ioredis' in '/var/lib/shippable/build/IN/sc-pp-backend-repo-master/gitRepo/node_modules/@iopipe/trace/dist/plugins'',
nodeId: 20,
nodeLabel: 'WebpackWriter',
nodeName: 'WebpackWriter',
nodeAnnotation: undefined,
instantiationStack:
' at WebpackWriter.Plugin (/var/lib/shippable/build/IN/sc-pp-backend-repo-master/gitRepo/node_modules/broccoli-plugin/index.js:7:31)\n at WebpackWriter.CachingWriter [as constructor] (/var/lib/shippable/build/IN/sc-pp-backend-repo-master/gitRepo/node_modules/broccoli-caching-writer/index.js:18:10)\n at new WebpackWriter (/var/lib/shippable/build/IN/sc-pp-backend-repo-master/gitRepo/node_modules/broccoli-webpack/index.js:13:16)\n at webpackLambdas (/var/lib/shippable/build/IN/sc-pp-backend-repo-master/gitRepo/node_modules/@silvercurve/lambda-server-build-utils/dist/builder.js:188:16)\n at LambdaServerBuilder.buildForDeploy (/var/lib/shippable/build/IN/sc-pp-backend-repo-master/gitRepo/node_modules/@silvercurve/lambda-server-build-utils/dist/builder.js:269:26)\n at LambdaServerBuilder.build (/var/lib/shippable/build/IN/sc-pp-backend-repo-master/gitRepo/node_modules/@silvercurve/lambda-server-build-utils/dist/builder.js:300:54)\n at resolve (/var/lib/shippable/build/IN/sc-pp-backend-repo-master/gitRepo/node_modules/broccoli/lib/wrappers/transform-node.js:29:35)\n at new Promise ()\n at TransformNodeWrapper.build (/var/lib/shippable/build/IN/sc-pp-backend-repo-master/gitRepo/node_modules/broccoli/lib/wrappers/transform-node.js:21:12)\n at Promise.resolve.then.then.then (/var/lib/shippable/build/IN/sc-pp-backend-repo-master/gitRepo/node_modules/broccoli/lib/builder.js:116:28)',
location:
{ file: undefined,
treeDir: undefined,
line: undefined,
column: undefined } } }

@mrickard
Copy link
Contributor

Thank you for the report, Bryan! Can you pin the previous release while we work out a solution for you?

@BryanCrotaz
Copy link
Author

BryanCrotaz commented Sep 10, 2019 via email

@mrickard
Copy link
Contributor

mrickard commented Sep 10, 2019

What happens if you build iopipe-js-trace from the version in this PR? iopipe/iopipe-js-trace#63

(See this related issue: iopipe/iopipe-js-trace#61)

Alternatively, try pinning to 1.14 and see if that works better for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants