No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Adding "transpileDependencies" results to "export xxx was not found ..."

    Help
    2
    3
    311
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      Burt last edited by

      Hello,
      I am using version 0.17,
      Adding “transpileDependencies” , “quasar dev” causes error:

      "export 'filter' was not found in 'p-iteration'
      

      the code is here
      Any help is really appreciated

      1 Reply Last reply Reply Quote 0
      • T
        teo last edited by

        Hope this can help. You can try create a plugin file e.g: p-iteration.js

        import * as iteration from 'p-iteration';
        
        export default ({ Vue, store }) => {
          Vue.prototype.$iteration = store.$iteration = iteration;
        };
        

        At quasar.conf.js

            plugins: [
              'i18n',
              'axios',
              'p-iteration'
            ],
        

        At your Vue file

        await this.$iteration.filter(words, x => (x.length > 1));
        
        1 Reply Last reply Reply Quote 0
        • B
          Burt last edited by

          Hi Teo, thank you for your answer.
          After applying your suggestion / code,
          there’s a different error:

          Uncaught ReferenceError: exports is not defined
              at eval (webpack-internal:///./node_modules/p-iteration/lib/static-methods.js:20)
              at Module../node_modules/p-iteration/lib/static-methods.js (app.js:3913)
              at __webpack_require__ (app.js:768)
              at fn (app.js:131)
              at Module.eval (webpack-internal:///./node_modules/p-iteration/index.js:6)
              at eval (webpack-internal:///./node_modules/p-iteration/index.js:13)
              at Module../node_modules/p-iteration/index.js (app.js:3889)
              at __webpack_require__ (app.js:768)
              at fn (app.js:131)
              at eval (webpack-internal:///./src/plugins/p-iteration.js:2)
          
          1 Reply Last reply Reply Quote 0
          • First post
            Last post