bimdata / bimdata-viewer-sdk Goto Github PK
View Code? Open in Web Editor NEW🏨 Development environment to create BIMData Viewer plugins
🏨 Development environment to create BIMData Viewer plugins
Hi,
I installed the app, set the oidc-callback return url on my application and when I try to login, I accept to give permissions but on my way back to localhost I have url constently changing
http://localhost:8080/oidc-callback?state=a640f87b75154efdba18903354ea9b26&session_state=499e9201-49c8-4cf7-9764-3610e187f03f&code=de96a443-1284-47da-99f2-6ad4318ee0e9.499e9201-49c8-4cf7-9764-3610e187f03f.aec55c70-d676-444f-a578-6d4a5f1a2a9c
http://localhost:8080/oidc-callback?state=88ff9646f6ef49309086744a76af3e51&session_state=499e9201-49c8-4cf7-9764-3610e187f03f&code=3b96c250-77a2-46f6-8202-f80bfbbc61fa.499e9201-49c8-4cf7-9764-3610e187f03f.aec55c70-d676-444f-a578-6d4a5f1a2a9c
Looking at the console, it looks like CORS issue on the iam.bimdata.io server
Access to XMLHttpRequest at 'https://iam.bimdata.io/auth/realms/bimdata/protocol/openid-connect/token' from origin 'http://localhost:8080' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
`npm run init-plugin
[email protected] init-plugin
node tools/init-plugin.js
TIPEE/REFLECT-PLUGIN/tools/init-plugin.js:5
const chalk = require("chalk");
^
Error [ERR_REQUIRE_ESM]: require() of ES Module TIPEE/REFLECT-PLUGIN/node_modules/chalk/source/index.js from TIPEE/REFLECT-PLUGIN/tools/init-plugin.js not supported.
Instead change the require of index.js in TIPEE/REFLECT-PLUGIN/tools/init-plugin.js to a dynamic import() which is available in all CommonJS modules.
at Object. (TIPEE/REFLECT-PLUGIN/tools/init-plugin.js:5:15) {
code: 'ERR_REQUIRE_ESM'
}
Node.js v18.4.0`
I use BIM data with angular. All works fine, i can see my IFC's files.
But when i click a button of my application or hover an element that have a "tooltip text" this error occured many times (100+)
core.js:5973 ERROR RangeError: Maximum call stack size exceeded at String.replace (<anonymous>) at f (bimdata-viewer.min.js:1) at bimdata-viewer.min.js:1 at Array.map (<anonymous>) at f (bimdata-viewer.min.js:1) at bimdata-viewer.min.js:1 at Array.map (<anonymous>) at f (bimdata-viewer.min.js:1) at bimdata-viewer.min.js:1
Pouvez-vous règler ce problème .
Merci
ERROR Failed to compile with 1 error
error in ./node_modules/@bimdata/bimdata-api-client/src/ApiClient.js
Module not found: Error: Can't resolve 'querystring' in './node_modules/@bimdata/bimdata-api-client/src'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
- add a fallback 'resolve.fallback: { "querystring": require.resolve("querystring-es3") }'
- install 'querystring-es3'
If you don't want to include a polyfill, you can use an empty module like this:
resolve.fallback: { "querystring": false }
npm run dev
and npm run dev anyPlugin
do result in the following error
node:events:368
throw er; // Unhandled 'error' event
^
Error: spawn vite ENOENT
at Process.ChildProcess._handle.onexit (node:internal/child_process:282:19)
at onErrorNT (node:internal/child_process:477:16)
at processTicksAndRejections (node:internal/process/task_queues:83:21)
Emitted 'error' event on ChildProcess instance at:
at Process.ChildProcess._handle.onexit (node:internal/child_process:288:12)
at onErrorNT (node:internal/child_process:477:16)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
errno: -4058,
code: 'ENOENT',
syscall: 'spawn vite',
path: 'vite',
spawnargs: []
}
npm run dev:only
will start vite but result in the following Error in the Browser
main.js:15 GET http://localhost:8080/.well-known/openid-configuration 404 (Not Found)
after npm run dev, I have :
Error: Can't resolve 'querystring'
`
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
- add a fallback 'resolve.fallback: { "querystring": require.resolve("querystring-es3") }'
- install 'querystring-es3'
If you don't want to include a polyfill, you can use an empty module like this:
resolve.fallback: { "querystring": false }
`
There are quotes missing for the proposed import statement in line 194 of init-plugin.js
Pasting import foo from foo
in Viewer.vue yields an error.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.