Skip to content
This repository was archived by the owner on Apr 25, 2019. It is now read-only.
This repository was archived by the owner on Apr 25, 2019. It is now read-only.

When creating a new plugin, #57

@prinzdezibel

Description

@prinzdezibel

the generated package.json does not define our common @reactioncommerce aliases.

This makes it impossible to write:

import { registerComponent, getHOCs, getRawComponent } from "@reactioncommerce/reaction-components";

Reproduce:

  1. Create new plugin via reaction plugins create --name my-plugin
  2. Put this snippet into imports/plugins/custom/my-plugin/client/index.js
import { registerComponent, getHOCs, getRawComponent } from "@reactioncommerce/reaction-components";
  1. It will throw an error in the browser's console:
    modules-runtime.js:261 Uncaught Error: Cannot find module '@reactioncommerce/reaction-components'

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