Skip to content

"Could not find module in path" error even though installed #2276

@gragland

Description

@gragland

🐛 bug report

Description of the problem

I have the npm module analytics installed but I'm seeing the following error in a new React CodeSandbox.

Could not find module in path: 'analytics' relative to '/src/index.js'

The only code I've added to the default React CodeSandbox is this in src/index.js:

import Analytics from 'analytics';

Link to sandbox: https://codesandbox.io/s/gracious-thompson-8730t

Your Environment

Software Name/Version
Сodesandbox PROD-1565017826-4f295f72c
Browser Chrome 76
Operating System macOS 10.13.6

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions