You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, we are trying to use this design-system-react in our project, but we are not able due to a problem at the time of using it.
We have our project working and running with react-scripts, and from now we are able to use any library we want, with this exception. We followed the getting started official guide, we have the following package.json and everything really looks quite the same, but somehow we are not able to make it work.
We even started a new project with Webpack 1.0 and no react-scripts installed following exactly the same, .babelrc: and the same webpack.config.js:
Everything works fine, till the moment we try to use any Component from it. For example, just adding the button example to one of our components:
import Button from 'design-system-react/components/button';
<Button label="Hello World!" onClick={this.handleClick} />
Of course, we have the handleClick function implemented in the component
Something interesting is if we just import the button it works and not using it, it works.
The exception we got is the following:
Uncaught Error: Invalid tag: /static/media/index.8365feb8.jsx
at invariant (invariant.js:42)
at validateDangerousTag (ReactDOMComponent.js:343)
at new ReactDOMComponent (ReactDOMComponent.js:370)
at Object.createInternalComponent (ReactHostComponent.js:39)
at instantiateReactComponent (instantiateReactComponent.js:77)
at instantiateChild (ReactChildReconciler.js:42)
at ReactChildReconciler.js:69
at traverseAllChildrenImpl (traverseAllChildren.js:75)
at traverseAllChildrenImpl (traverseAllChildren.js:91)
at traverseAllChildren (traverseAllChildren.js:170)
at Object.instantiateChildren (ReactChildReconciler.js:68)
at ReactDOMComponent._reconcilerInstantiateChildren (ReactMultiChild.js:183)
at ReactDOMComponent.mountChildren (ReactMultiChild.js:222)
at ReactDOMComponent._createInitialChildren (ReactDOMComponent.js:701)
at ReactDOMComponent.mountComponent (ReactDOMComponent.js:520)
at Object.mountComponent (ReactReconciler.js:43)
at ReactCompositeComponentWrapper.performInitialMount (ReactCompositeComponent.js:368)
at ReactCompositeComponentWrapper.mountComponent (ReactCompositeComponent.js:255)
at Object.mountComponent (ReactReconciler.js:43)
at ReactDOMComponent.mountChildren (ReactMultiChild.js:234)
at ReactDOMComponent._createInitialChildren (ReactDOMComponent.js:701)
at ReactDOMComponent.mountComponent (ReactDOMComponent.js:520)
at Object.mountComponent (ReactReconciler.js:43)
at ReactCompositeComponentWrapper.performInitialMount (ReactCompositeComponent.js:368)
at ReactCompositeComponentWrapper.mountComponent (ReactCompositeComponent.js:255)
at Object.mountComponent (ReactReconciler.js:43)
at ReactDOMComponent.mountChildren (ReactMultiChild.js:234)
at ReactDOMComponent._createInitialChildren (ReactDOMComponent.js:701)
at ReactDOMComponent.mountComponent (ReactDOMComponent.js:520)
at Object.mountComponent (ReactReconciler.js:43)
at ReactCompositeComponentWrapper.performInitialMount (ReactCompositeComponent.js:368)
at ReactCompositeComponentWrapper.mountComponent (ReactCompositeComponent.js:255)
at Object.mountComponent (ReactReconciler.js:43)
at ReactDOMComponent.mountChildren (ReactMultiChild.js:234)
at ReactDOMComponent._createInitialChildren (ReactDOMComponent.js:701)
at ReactDOMComponent.mountComponent (ReactDOMComponent.js:520)
at Object.mountComponent (ReactReconciler.js:43)
at ReactCompositeComponentWrapper.performInitialMount (ReactCompositeComponent.js:368)
at ReactCompositeComponentWrapper.mountComponent (ReactCompositeComponent.js:255)
at Object.mountComponent (ReactReconciler.js:43)
at ReactDOMComponent.mountChildren (ReactMultiChild.js:234)
at ReactDOMComponent._createInitialChildren (ReactDOMComponent.js:701)
at ReactDOMComponent.mountComponent (ReactDOMComponent.js:520)
at Object.mountComponent (ReactReconciler.js:43)
at ReactCompositeComponentWrapper.performInitialMount (ReactCompositeComponent.js:368)
at ReactCompositeComponentWrapper.mountComponent (ReactCompositeComponent.js:255)
at Object.mountComponent (ReactReconciler.js:43)
at ReactDOMComponent.mountChildren (ReactMultiChild.js:234)
at ReactDOMComponent._createInitialChildren (ReactDOMComponent.js:701)
at ReactDOMComponent.mountComponent (ReactDOMComponent.js:520)
We used both, just the @salesforce-ux/design-system or the react-lightning-design-system with no problems in the applications. But we would like to take the advantage of this one, as looks amazing.
So any help here will be welcome.
The text was updated successfully, but these errors were encountered:
The ES6 tag is not transpiled into ES5. Create React App and most plug and play environments like it do not transpile libraries found in node_modules. Try the #v0.8.0 tag for the time being which is CommonJS. We are working on an NPM module that supports both. Be on the look out for that issue solved. #1146 It may not be until January, if you want to transition to the node module.
Hi, we are trying to use this design-system-react in our project, but we are not able due to a problem at the time of using it.
We have our project working and running with
react-scripts
, and from now we are able to use any library we want, with this exception. We followed the getting started official guide, we have the followingpackage.json
and everything really looks quite the same, but somehow we are not able to make it work.We even started a new project with Webpack 1.0 and no
react-scripts
installed following exactly the same,.babelrc:
and the samewebpack.config.js
:Everything works fine, till the moment we try to use any Component from it. For example, just adding the button example to one of our components:
Of course, we have the
handleClick
function implemented in the componentSomething interesting is if we just import the button it works and not using it, it works.
The exception we got is the following:
We used both, just the
@salesforce-ux/design-system
or thereact-lightning-design-system
with no problems in the applications. But we would like to take the advantage of this one, as looks amazing.So any help here will be welcome.
The text was updated successfully, but these errors were encountered: