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

Changes main package path from absolute to relative #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zachwolf
Copy link

Hello!

First off, thanks for your work on this package.

I'm having an issue with Jest not being able to find the package. Running the app normally works fine, however when running tests, I get this error:

src/containers/Layout/Layout.test.js
  ● Test suite failed to run

    Cannot find module 'pdf417' from 'HomePage.js'

      at Resolver.resolveModule (node_modules/jest-resolve/build/index.js:179:17)
      at Object.<anonymous> (src/containers/Home/HomePage.js:13:12)

Switching the main path in package.json to be relative seems to fix this issue. Thoughts?

Thanks again

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

Successfully merging this pull request may close these issues.

1 participant