Coder Social home page Coder Social logo

bimdata-viewer-sdk's People

Contributors

amoki avatar bimdata-io avatar dependabot[bot] avatar kurtil avatar lrxgaelle avatar mere-teresa avatar nicolasrichel avatar romainmou avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

bimdata-viewer-sdk's Issues

CORS header missing from authentication server

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.

Install SDK : npm run init-plugin

`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`

Problem occured when integrating with Angular

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

Error npm run dev

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 Error

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)

RUN SCRIPT DEV ERROR

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 }
`

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.