Skip to content

Module not found: Error: Can't resolve 'commonjs-proxy:. #11255

Closed
@AlexanderKozhevin

Description

@AlexanderKozhevin
- [x] bug report -> please search issues before submitting
- [ ] feature request

Area

- [ ] devkit
- [ ] schematics

node v8.11.1
npm 6.1.0

macOS Sierra

Repro steps

I just followed example from official wiki to create new library. But when I tried to use new module or component, I got an error in the console.
I created project from scratch with angular-cli (Angular CLI: 6.1.0-rc.0).
Angular (6.1.0-beta.1)

ERROR in ./dist/tvmaze/fesm5/tvmaze.js
Module not found: Error: Can't resolve 'commonjs-proxy:./lib/tvmaze.component' in '/Users/alexanderkozhevin/Desktop/lib-demo/dist/tvmaze/fesm5'
ERROR in ./dist/tvmaze/fesm5/tvmaze.js
Module not found: Error: Can't resolve 'commonjs-proxy:./lib/tvmaze.module' in '/Users/alexanderkozhevin/Desktop/lib-demo/dist/tvmaze/fesm5'
ERROR in ./dist/tvmaze/fesm5/tvmaze.js
Module not found: Error: Can't resolve 'commonjs-proxy:./lib/tvmaze.service' in '/Users/alexanderkozhevin/Desktop/lib-demo/dist/tvmaze/fesm5'
ERROR in ./dist/tvmaze/fesm5/tvmaze.js
Module not found: Error: Can't resolve 'commonjs-proxy:./public_api' in '/Users/alexanderkozhevin/Desktop/lib-demo/dist/tvmaze/fesm5'
ERROR in ./dist/tvmaze/fesm5/tvmaze.js
Module not found: Error: Can't resolve 'commonjs-proxy:./tvmaze.component' in '/Users/alexanderkozhevin/Desktop/lib-demo/dist/tvmaze/fesm5'
ERROR in ./dist/tvmaze/fesm5/tvmaze.js
Module not found: Error: Can't resolve 'commonjs-proxy:@angular/core' in '/Users/alexanderkozhevin/Desktop/lib-demo/dist/tvmaze/fesm5'
ERROR in ./dist/tvmaze/fesm5/tvmaze.js
Module not found: Error: Can't resolve 'commonjsHelpers' in '/Users/alexanderkozhevin/Desktop/lib-demo/dist/tvmaze/fesm5'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions