Closed MuluhGodson closed 2 years ago
Is the i18n
package missing? Perhaps it is looking for a missing locale file?
@brylie
Looked more into this issue. It appears our code is correct and works as expected. The localization packages also have no issues.
The reason for this error is the version of Vue
imported by the CDN link.
We currently are using
<script src="https://unpkg.com/vue"></script>
which makes available Vue 3 instead of Vue 2.
Changing this link to
<script src="https://cdn.jsdelivr.net/npm/vue@2.6.14"></script>
solved the issue. So this issue is really a none-issue. False flag.
I've updated the link on the staging site. You can now view the new License Chooser on the staging site.
@MuluhGodson, we may need to update our developer documentation in the Chooser package to include the correct example code?
I went ahead and updated the README with a Vue 2 code example.
Description
Opening the License Page on the staging environment for
project_creativecommons.org
displays a blank page with the console error:I cloned the latest version of this repo and got the same error on my local dev environment. However,
npm run serve
works and displays correctly.cc @brylie
Reproduction
npm install
npm run build-component
demo.html
file in thedist
folder [with python3 you can start a local server withpython3 -m http.server
]Expectation
License Chooser should display correctly.
Resolution