Git Product home page Git Product logo

ngx-schematics-for-storybook's Introduction

ngx-schematics-for-storybook's People

Contributors

kimamula avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

ngx-schematics-for-storybook's Issues

Cannot find module '@schematics/angular/utility/project

I followed your steps to install, but it seems I'm doing something wrong. Can you review the steps?

I did:

npm install ngx-schematics-for-storybook @storybook/cli --save-dev
npx getstorybook

Note the space, needs amends in README.md

ng config cli.defaultCollection ngx-schematics-for-storybook  

update angular.json

"schematics": {
        "ngx-schematics-for-storybook:component": {
          "style": "scss"
        }
      },

Result

 โœ— ng g c foo               
An unhandled exception occurred: Cannot find module '@schematics/angular/utility/project'
Require stack:
- /node_modules/ngx-schematics-for-storybook/src/component/index.js
- /node_modules/@angular-devkit/schematics/tools/export-ref.js
- /node_modules/@angular-devkit/schematics/tools/index.js
- /node_modules/@angular/cli/utilities/json-schema.js
- /node_modules/@angular/cli/models/command-runner.js
- /node_modules/@angular/cli/lib/cli/index.js
- /.nvm/versions/node/v13.7.0/lib/node_modules/@angular/cli/lib/init.js
- /.nvm/versions/node/v13.7.0/lib/node_modules/@angular/cli/bin/ng
See "/private/var/folders/9f/71m_x5w96vbdsk4fmfb9h68r0000gp/T/ng-DcsEED/angular-errors.log" for further details.

Tried:

npm i @schematics/angular

Also looked at NativeScript/nativescript-schematics#241

npm i @nativescript/angular
npm i @nativescript/schematics

after

npm i -g @nativescript/schematics 

it says

More than one module matches. Use skip-import option to skip importing the component into the closest module.

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.