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

Cannot find module 'bundle-loader?lazy!../pages/register/Register' from 'App.js' #3

Open
alexb-uk opened this issue Oct 13, 2017 · 3 comments

Comments

@alexb-uk
Copy link

I've just cloned the repo and successfully performed yarn install + yarn start and have the example dashboard up and running which is great.

However when I run the tests I get the following error:

$ yarn test
yarn run v1.1.0
$ jest

 FAIL  src\components\Layout\Layout.test.js
  ● Test suite failed to run

    Cannot find module 'bundle-loader?lazy!../pages/register/Register' from 'App.js'

      at Resolver.resolveModule (node_modules/jest-resolve/build/index.js:179:17)
      at Object.<anonymous> (src/components/App.js:20:374)

Test Suites: 1 failed, 1 total
Tests:       0 total
Snapshots:   0 total
Time:        1.06s
Ran all test suites.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

I'm not familiar with bundle-loader so thought I would ask on here in case it was an easy fix.

Many Thanks for making the skeleton public as RSK + React Router v4 is exactly what I'm looking for and being a complete Node.js novice hopefully this will give me a really big boost.

Cheers

Alex

System Info:

Windows 10 Pro
node v6.10.3
npm 3.10.10
yarn 1.1.0
@jgardezi
Copy link

jgardezi commented Dec 8, 2017

+1 - I am getting the similar issue.

System Info:

  • macOS High Sierra
  • node v8.9.1
  • npm 5.5.1
  • yarn 1.3.2

@koerbcm
Copy link

koerbcm commented Jul 17, 2018

I am getting the same issue too. I can't seem to use Bundle or withMeta correctly. I know nothing about bundle-loader and Google is turning up nothing. Could anyone help with this?

@strefethen
Copy link

strefethen commented Apr 8, 2019

+1
@okendoken any input on this?

(edited)
If I had to guess I suspect it's perhaps related to the switch from chai to jest on the originating repo:

kriasoft/react-starter-kit#1624

yarn test works there.

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

4 participants