Giter VIP home page Giter VIP logo

Comments (7)

michelson avatar michelson commented on May 28, 2024

Hi @philgyford , are you using some sort of js preprocessor like webpack or brunch? if it's so you can import the libraries, check this repo https://github.com/michelson/dante2-tests.

from dante2.

philgyford avatar philgyford commented on May 28, 2024

Thanks. I'm not using a preprocessor - I have a directory of JS files (which will probably get minified and combined later) and I'm using Sass to compile the CSS files.

from dante2.

jaroslawziolkowski avatar jaroslawziolkowski commented on May 28, 2024

@michelson I get https://github.com/michelson/dante2-tests and try run yarn install yarn run
and this is full of errors

zrzut ekranu 2017-07-28 o 14 11 41

this is the same problem like import Editor to ES6 in own project.

from dante2.

michelson avatar michelson commented on May 28, 2024

Hi , I've tested again the repo and is working fine.

try this: yarn upgrade Dante2 then yarn start

image

from dante2.

jaroslawziolkowski avatar jaroslawziolkowski commented on May 28, 2024

@michelson still the same errors. BTW yarn display warnings because https://github.com/michelson/dante2-tests/blob/master/package.json in dev and dependencies is different version for babel-core and babel-loader
sass-loader need to node-sass and extract-text-webpack-plugin plugin doesn't exists in version 2.0.0-beta but 2.0.0-beta.1 - 2.0.0-beta.5 or higher

After delete this warning still I see problems. And when I see code this is logic.

All my log

zrzut ekranu 2017-07-28 o 21 03 36

zrzut ekranu 2017-07-28 o 21 04 15

zrzut ekranu 2017-07-28 o 21 04 40

zrzut ekranu 2017-07-28 o 21 05 13

@michelson For me it's strange. Look at this image
here is node_modules/Dante2 structure and your import in
https://github.com/michelson/dante2-tests/blob/master/index.js

zrzut ekranu 2017-07-28 o 22 17 10

But also if we will change path to file. In dante2 src/index.js you import

import Dante from './components/dante'
import DanteEditor from './components/dante_editor'

but in this files this is exported not as default and throw error

from dante2.

hypervillain avatar hypervillain commented on May 28, 2024

Can't run dante2-tests either, even after yarn upgrading Dante2. Error coming from extract-text-webpack-plugin it seems... Any thought?

from dante2.

michelson avatar michelson commented on May 28, 2024

dante2-tests updated with latest version of dante2, 0.4.0 and is working as expected now
ps: if you use dante-test with a development version of Dante2 (aka: from github) you will need to run the build command on the node_module, so: cd ./node_modules/Dante2 & yarn build

please reopen this issue if you get something wrong

from dante2.

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.