Comments (7)
@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.
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.
@joseph-so Please make sure you test this example as an individual project.
- In terminal, make sure you are inside the directory of
examples/vue-example-app/
. - Run
yarn install
ornpm install
to install all the dependencies. - Run
yarn serve
ornpm run serve
.
Let me know if it works for you. Cheers.
from ripple.
@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.
@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.
@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.
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)
- test automate
- Example application `vue-example-app` does not work out of the box. HOT 2
- Packages appear to have untranspiled optional chaining ('?.') operator. HOT 2
- SassError: $string: #457b9d is not a string. HOT 2
- Allow overriding the vic-go-au logo HOT 2
- Ripple Form does not pass selectedCharLength to rpl-select component
- main menu with hundreds of menu items and very deep hierarchy behaves unexpectedly
- Back to top button not working, id changed HOT 1
- Add ability to disable hardcoded pages through feature flag
- Node 13 has deprecated the use of request.connection
- Spelling Fix - Field Rpl Slider (has PR) HOT 2
- getBaseUrl incorrectly setting the request protocol
- Pagination next button, when disabled, still shows an interactive cursor pointer.
- Accessibility: RplSelect, when no value is set will read the plceholder twice
- Date field calendar popup z-index issue
- Anchor links with no href should be ignored by markup plugin
- Server-side rendering on content collection is pointed to the URL that is not reachable by the server.
- Ripple Form Component Datepicker does not meet WCAG 2.0 Level AA: Acceptable compliance
- Ripple's From component Datepicker does not update date on manual enter.
- @dpc-sdp/ripple-site-footer - When in responsive mode, elements in the footer become collapsed and are not keyboard accessible.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ripple.