Giter Club home page Giter Club logo

stencil-lerna-poc's Introduction

The bug report and possible fixes can be found here: ionic-team/stencil#1491

stencil-lerna-poc

Stencil does not work with symlinks, I suspect that the problem is with rollup, it might require extra configurations based on this issue #447.

The issue happens when I try to use lerna to link between packages:

I used npm init stencil and picked the components starter template for the stencil part.

root
    /packages
        /x-alpha (exports a string)
        /x-beta (imports x-alpha successfully)
        /x-stencil (from stencil-cli fails to import x-alpha)

The same issue also happens when trying to manually use npm link or yarn workspaces.

Instructions

  1. run npm install to install lerna in the root directory.
  2. run npm run bootstrap to let lerna bootstrap the local dependencies.
  3. go to packages/x-beta and run npm start, you should see that the symlink was connected, it will print: successfully imported alpha: alpha.
  4. go to packages/x-stencil, install dependencies and call npm start, stencil fails to resolve symlink dependencies. stencil gives this error in the browser console:
ReferenceError: module is not defined

stencil-lerna-poc's People

Contributors

liron-navon avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.