npm-package

How to export react component as npm package? I have a syntax error

安稳与你 提交于 2020-01-06 05:42:07
问题 I have created react app which name is "create-react-app-npm". And in the ./src/index.js file I have exported component to use it npm package in the another project. Firstly I have run this code in my main root. npm run eject and then next part of my project This is the src/index.js in the create-react-app-npm folder import React from 'react'; import './index.css'; import App from './App'; class ExportApp extends React.Component{ render(){ return(<App sayHi="hello There I am creating my first

npm install from tfs feed (on build process) give error: Unable to authenticate

一个人想着一个人 提交于 2019-12-23 09:49:41
问题 We have our own npm package and a project that uses it, I want to publish it to a tfs feed - repository and install it from there instead of from a physical file. I published the package to the feed from my development machine, and I changed the reference within the project that consumes it. The whole process works fine from my machine, but when I try to consume the package on a build process in the tfs - it fails with the error : Unable to authenticate, your authentication token seems to be