Skip to content

node_modules cannot be included #7

@pblanco-dekalabs

Description

@pblanco-dekalabs

After including the plugin like:

conf.resolve.plugins.push(
  new ModuleScopePlugin(APP_SOURCE_PATH, [COMMON_MODULE_SOURCE_PATH, NODE_MODULES])
);

But CRA will throw:

Module not found: Error: You attempted to import /some-folder/node_modules/some-package/some-file.js
which falls outside of the project src/ directory. Relative imports outside of src/ are not supported.
You can either move it inside src/, or add a symlink to it from project's node_modules/.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions