Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] Unable to embed in Create-React-App - issue with font-awesome-sass-loader #859

Open
hydrosquall opened this issue May 1, 2021 · 1 comment

Comments

@hydrosquall
Copy link
Member

Hi,

I've enjoyed working with the publicly deployed demo, and was wondering if anyone has been able to get embed Voyager successfully inside another application recently. I was hopeful that #858 would solve the issue, but it didn't work for me.

I've setup a minimal create-react-app example, which doesn't compile but attempts to instantiate a very basic instance of Voyager.

When running locally (with create react app's yarn run start command) , I get a different error than what you'll see in codesandbox (https://a.cl.ly/wbuw5don)

/Users/cameron.yick/Projects/voyager/node_modules/font-awesome-sass-loader/font-awesome-sass.config.js (/Users/cameron.yick/Projects/voyager/node_modules/css-loader/dist/cjs.js!/Users/cameron.yick/Projects/voyager/node_modules/font-awesome-sass-loader/node_modules/sass-loader/dist/cjs.js!/Users/cameron.yick/Projects/voyager/node_modules/font-awesome-sass-loader/font-awesome-sass-styles.loader.js!/Users/cameron.yick/Projects/voyager/node_modules/babel-loader/lib??ref--5-oneOf-3!/Users/cameron.yick/Projects/voyager/node_modules/font-awesome-sass-loader/font-awesome-sass.config.js)
TypeError: this.getOptions is not a function

I tried using @happybeing's example from #845 (https://github.com/happybeing/svelte-vega-voyager-embed ) , which returns a very similar error when I ran it locally today.

ERROR in ./node_modules/font-awesome-sass-loader/font-awesome-sass.config.js (./node_modules/font-awesome-sass-loader/node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/font-awesome-sass-loader/font-awesome-sass-styles.loader.js!./node_modules/font-awesome-sass-loader/font-awesome-sass.config.js)
Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
TypeError: this.getOptions is not a function
    at Object.loader (/Users/cameron.yick/Projects/svelte-vega-voyager-embed/node_modules/sass-loader/dist/index.js:25:24)

Workarounds I tried

These didn't work for me, but mentioning them in case others have run into the same issue.

@valentinoli
Copy link

valentinoli commented Aug 23, 2021

I'm getting the same error, trying to embed Voyager into a Vue application:

ERROR  in ./node_modules/font-awesome-sass-loader/font-awesome-sass.config.js

Module build failed (from ./node_modules/style-loader/dist/cjs.js):
TypeError: this.getOptions is not a function
    at Object.loader (C:\Users\valentin\hestia-demo\node_modules\style-loader\dist\index.js:19:24)

 @ ./node_modules/font-awesome-sass-loader/index.js 1:0-110
 @ ./node_modules/datavoyager/build/lib-voyager.js
 @ ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib??vue-loader-options!./components/TheVoyager.vue?vue&type=script&lang=js&
 @ ./components/TheVoyager.vue?vue&type=script&lang=js&
 @ ./components/TheVoyager.vue
 @ ./.nuxt/components/index.js
 @ ./.nuxt/components/plugin.js
 @ ./.nuxt/index.js
 @ ./.nuxt/client.js
 @ multi ./node_modules/eventsource-polyfill/dist/browserify-eventsource.js (webpack)-hot-middleware/client.js?reload=true&timeout=30000&ansiColors=&overlayStyles=&path=%2F__webpack_hmr%2Fclient&name=client ./.nuxt/client.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants