Coder Social home page Coder Social logo

Comments (7)

tim-yao avatar tim-yao commented on August 11, 2024

@joseph-so I have added the example in above PR, it should solve your problem.
You will need to install some dependencies https://github.com/dpc-sdp/ripple/pull/535/files#diff-dc87251d6ad06a2a7c9c30d8ecc0fe8aR16 and update your webpack config https://github.com/dpc-sdp/ripple/pull/535/files#diff-087bca1ee15ae547fe848aae20091ce6R23

Cheers.

from ripple.

joseph-so avatar joseph-so commented on August 11, 2024

Hi @tim-yao ,
Thanks for it. I try to follow your instruction to add the npm package (i add as yarn) and update the webpack config,
but when i try to run it , i receive a lot of warning like this

Module build failed (from ./node_modules/svg-sprite-loader/lib/loader.js):
Error: Cannot find module 'webpack/package.json'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Module.require (internal/modules/cjs/loader.js:690:17)

and the vue serve still did not show any image

Thanks

from ripple.

tim-yao avatar tim-yao commented on August 11, 2024

@joseph-so Please make sure you test this example as an individual project.

  1. In terminal, make sure you are inside the directory of examples/vue-example-app/.
  2. Run yarn install or npm install to install all the dependencies.
  3. Run yarn serve or npm run serve.

Let me know if it works for you. Cheers.

from ripple.

joseph-so avatar joseph-so commented on August 11, 2024

@tim-yao The error is gone when i downgrade the svg-sprite-loader from 4.1.6 to 4.1.0. I may try to find out which latest version without this issue. (I just pick 4.1.0 randomly)

from ripple.

joseph-so avatar joseph-so commented on August 11, 2024

@tim-yao get the error from svg-sprite-loader 4.1.4+ , if I use svg-sprite-loader 4.1.3- , I don't face this error

Module build failed (from ./node_modules/svg-sprite-loader/lib/loader.js):
Error: Cannot find module 'webpack/package.json'

from ripple.

tim-yao avatar tim-yao commented on August 11, 2024

@joseph-so I can't reproduce the issue with npm and the example code which has svg-sprite-loader v4.1.6. I did get build error in yarn, which looks like there are some package version conflicts within workspaces. But if you take this example out of this monorepo project and run it isolated with yarn, should be fine.

I am going to have look at that error and add tests later. Thanks for report! 👍

from ripple.

tim-yao avatar tim-yao commented on August 11, 2024

Example for vue.js app has been added in https://github.com/dpc-sdp/ripple/tree/develop/examples/vue-example-app

from ripple.

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.