Skip to content

Module not found: 'main/codecs' in '/lerna-monorepo/node_modules/json-url/src/main' #17

@andy14312

Description

@andy14312

I'm trying to use lerna to maintain multiple packages. One of my packages uses json-url npm module and when I tried to run my webpack bundle it gave me this error
Module not found: 'main/codecs' in '/lerna-monorepo/node_modules/json-url/src/main'

the folder structure is
lerna-monorepo
--node_modules
json-url
--packages
--mypackage

I believe this is due to usage of absolute file referencing in json-url/src/main/index.js

Could you please help me out here

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