Coder Social home page Coder Social logo

is not working in vue 2 about vue-simplemde HOT 9 CLOSED

f-loat avatar f-loat commented on May 24, 2024
is not working in vue 2

from vue-simplemde.

Comments (9)

F-loat avatar F-loat commented on May 24, 2024

more info provide? I tested well just now with the gh-pages branch and the last edition.

from vue-simplemde.

murilolivorato avatar murilolivorato commented on May 24, 2024

Hello my friend , thanks for answering .
I imported the code in NPM , like this -

npm install vue-simplemde --save

This is the code for vue 1.0 or vue 2.0 ?
after that in vue , I imported like this -
import VueSimplemde from 'vue-simplemde';

And this gave me this error -

error4

Thanks .

from vue-simplemde.

F-loat avatar F-loat commented on May 24, 2024

Not at all. It for both vue1.0 and vue2.0 now.
Is this in your webpack configs ? If not, the same as #3 and I will fix this before long.

{
  resolve: {
    extensions: ['.vue'],
  }
},

from vue-simplemde.

murilolivorato avatar murilolivorato commented on May 24, 2024

no, it didnt work

from vue-simplemde.

F-loat avatar F-loat commented on May 24, 2024

extension added in 0.3.7 with commit 86e76bf

from vue-simplemde.

murilolivorato avatar murilolivorato commented on May 24, 2024

Thanks for the help my friend . I did those changes .
But know it has changed the error -
error5

from vue-simplemde.

F-loat avatar F-loat commented on May 24, 2024

Can you provide your package.json file

from vue-simplemde.

murilolivorato avatar murilolivorato commented on May 24, 2024

it is like this -

{
  "private": true,
  "scripts": {
    "webpack": "set NODE_ENV=development && webpack --hide-modules",
    "dev": "set NODE_ENV=development && webpack --hide-modules --watch",
    "production": "set NODE_ENV=production && webpack --hide-modules"
  },
  "devDependencies": {
    "axios": "^0.15.3",
    "babel-core": "^6.21.0",
    "babel-loader": "^6.2.10",
    "babel-preset-es2015": "^6.18.0",
    "bootstrap-sass": "^3.3.7",
    "gulp": "^3.9.1",
    "jquery": "^3.1.0",
    "laravel-elixir": "^6.0.0-14",
    "laravel-elixir-vue-2": "^0.2.0",
    "laravel-elixir-webpack-official": "^1.0.2",
    "laravel-mix": "^0.5.0",
    "lodash": "^4.16.2",
    "vue": "^2.1.8",
    "vue-resource": "^1.0.3",
    "webpack": "^2.2.0-rc.3"
  },
  "dependencies": {
    "vue-simplemde": "^0.3.6",
  }
}

Thanks

from vue-simplemde.

F-loat avatar F-loat commented on May 24, 2024

You should add the vue-loader to handle *.vue files, use vue-cli maybe is the better way for you.

from vue-simplemde.

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.