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 resolve any module after yarn install #2667

Open
clarkWakeland opened this issue Sep 25, 2024 · 0 comments
Open

Cannot resolve any module after yarn install #2667

clarkWakeland opened this issue Sep 25, 2024 · 0 comments

Comments

@clarkWakeland
Copy link

After doing a clean fork I run yarn install to get all the dependencies. I try to run yarn start but it cannot resolve a single module from node_modules, despite them all being in there.

This feels like a configuration issue but google has not been helpful, any advice would be appreciated, even if this turns out to be a total beginner mistake. Thanks

Example after running yarn start


    ../../src/components/src/common/icons/effects/ink.tsx:5:22:
      5 │ import PropTypes from 'prop-types';
        ╵                       ~~~~~~~~~~~~

  You can mark the path "prop-types" as external to exclude it from the bundle, which will remove
  this error and leave the unresolved path in the bundle.

✘ [ERROR] Could not resolve "react"

    ../../src/components/src/effects/effect-time-selector.tsx:4:42:
      4 │ import React, {useMemo, useCallback} from 'react';
        ╵                                           ~~~~~~~

  You can mark the path "react" as external to exclude it from the bundle, which will remove this
  error and leave the unresolved path in the bundle.

✘ [ERROR] Could not resolve "styled-components"

    ../../src/components/src/effects/effect-time-selector.tsx:5:32:
      5 │ import styled, {withTheme} from 'styled-components';
        ╵                                 ~~~~~~~~~~~~~~~~~~~

  You can mark the path "styled-components" as external to exclude it from the bundle, which will
  remove this error and leave the unresolved path in the bundle.

✘ [ERROR] Could not resolve "classnames"

    ../../src/components/src/effects/effect-time-selector.tsx:6:23:
      6 │ import classNames from 'classnames';
        ╵                        ~~~~~~~~~~~~

  You can mark the path "classnames" as external to exclude it from the bundle, which will remove
  this error and leave the unresolved path in the bundle.

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

1 participant