Code Monkey home page Code Monkey logo

Comments (8)

boygirl avatar boygirl commented on June 11, 2024

var VictoryThing = require("victory-thing").VictoryThing; does work.

from formidable-react-component-boilerplate.

ryan-roemer avatar ryan-roemer commented on June 11, 2024

Can you please give an actual reproduction in code of the issue?

from formidable-react-component-boilerplate.

boygirl avatar boygirl commented on June 11, 2024

if you clone down victory-donut you and npm install it will not find victory-animation, we were working around this by changing "main": "lib/index.js" to "main": "dist/victory-animation.js" in the package.json of victory-animation, which is not going to work out in the long run.

from formidable-react-component-boilerplate.

ryan-roemer avatar ryan-roemer commented on June 11, 2024

@boygirl -- Thanks. I'll try to reproduce that exact thing.

from formidable-react-component-boilerplate.

ryan-roemer avatar ryan-roemer commented on June 11, 2024

One problem is in the .npmignore, which when installed is:

### SublimeText ###
*.sublime-workspace

### OSX ###
.DS_Store
.AppleDouble
.LSOverride
Icon

# Thumbnails
._*

# Files that might appear on external disk
.Spotlight-V100
.Trashes

### Windows ###
# Windows image file caches
Thumbs.db
ehthumbs.db

# Folder config file
Desktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# App specific

coverage
node_modules
bower_components
.tmp
lib
npm-debug.log

lib is npmignore'd, which means we're not publishing it. Let me confirm upstream in this project.

from formidable-react-component-boilerplate.

ryan-roemer avatar ryan-roemer commented on June 11, 2024

lib is in the boilerplate. For example, this works:

diff --git a/src/components/victory-donut.jsx b/src/components/victory-donut.jsx
index 5a036a4..0328f53 100644
--- a/src/components/victory-donut.jsx
+++ b/src/components/victory-donut.jsx
@@ -2,7 +2,9 @@ import d3 from "d3";
 import _ from "lodash";
 import React from "react";
 import Radium from "radium";
-import {VictoryAnimation} from "victory-animation";
+import {BoilerplateComponent} from "formidable-react-component-boilerplate";
+
+const VictoryAnimation = BoilerplateComponent;

 @Radium
 class VictoryDonut extends React.Component {

@boygirl -- How did you last publish victory-animation?

from formidable-react-component-boilerplate.

boygirl avatar boygirl commented on June 11, 2024

Ah, some of us generated components before the new publish stuff hit the boilerplate repos. I'll check on that and get back to you.

from formidable-react-component-boilerplate.

boygirl avatar boygirl commented on June 11, 2024

fixed! we needed an .npmignore that did not ignore lib. Packages were falling back to the .gitignore on publish which does ignore lib.

from formidable-react-component-boilerplate.

Related Issues (20)

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.