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

Build error #161

Closed
glutamate opened this issue Mar 11, 2023 · 2 comments
Closed

Build error #161

glutamate opened this issue Mar 11, 2023 · 2 comments
Labels
bug Something isn't working
Milestone

Comments

@glutamate
Copy link

I am trying to build (the iife js file for use in a vanilla js page):

I am on node 16 and latest commit:

tomn@Toms-Mac-mini svelte-gantt % git show --summary
commit ffdbd8c3c745be63ed28e8b785c9ab6ba6b01b0e (HEAD -> master, origin/master, origin/HEAD)
Merge: 8babe1f 16bd62a
Author: V-Py <[email protected]>
Date:   Wed Jan 18 09:41:06 2023 +0100

    Merge pull request #152 from BlueFoxPrime/fixes-multiple-selection-and-more
    
    Fixes multiple selection and more

tomn@Toms-Mac-mini svelte-gantt % node --version    
v16.18.1

But i get the following build error:

tomn@Toms-Mac-mini svelte-gantt % npm install && node tools/build

up to date, audited 309 packages in 573ms

41 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
[rollup-plugin-svelte] Unknown "dev" option. Please use "compilerOptions" for any Svelte compiler configuration.
Error: Unknown object type "asyncfunction"
    at Object._object (/Users/tomn/tmp/svelte-gantt/node_modules/rollup-plugin-typescript2/dist/rollup-plugin-typescript2.cjs.js:23692:17)
    at Object._function (/Users/tomn/tmp/svelte-gantt/node_modules/rollup-plugin-typescript2/dist/rollup-plugin-typescript2.cjs.js:23793:14)
    at Object.dispatch (/Users/tomn/tmp/svelte-gantt/node_modules/rollup-plugin-typescript2/dist/rollup-plugin-typescript2.cjs.js:23659:30)
    at /Users/tomn/tmp/svelte-gantt/node_modules/rollup-plugin-typescript2/dist/rollup-plugin-typescript2.cjs.js:23720:18
    at Array.forEach (<anonymous>)
    at Object._object (/Users/tomn/tmp/svelte-gantt/node_modules/rollup-plugin-typescript2/dist/rollup-plugin-typescript2.cjs.js:23716:21)
    at Object.dispatch (/Users/tomn/tmp/svelte-gantt/node_modules/rollup-plugin-typescript2/dist/rollup-plugin-typescript2.cjs.js:23659:30)
    at /Users/tomn/tmp/svelte-gantt/node_modules/rollup-plugin-typescript2/dist/rollup-plugin-typescript2.cjs.js:23734:23
    at Array.forEach (<anonymous>)
    at Object._array (/Users/tomn/tmp/svelte-gantt/node_modules/rollup-plugin-typescript2/dist/rollup-plugin-typescript2.cjs.js:23733:20)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: Unknown object type "asyncfunction"
    at Object._object (/Users/tomn/tmp/svelte-gantt/node_modules/rollup-plugin-typescript2/dist/rollup-plugin-typescript2.cjs.js:23692:17)
    at Object._function (/Users/tomn/tmp/svelte-gantt/node_modules/rollup-plugin-typescript2/dist/rollup-plugin-typescript2.cjs.js:23793:14)
    at Object.dispatch (/Users/tomn/tmp/svelte-gantt/node_modules/rollup-plugin-typescript2/dist/rollup-plugin-typescript2.cjs.js:23659:30)
    at /Users/tomn/tmp/svelte-gantt/node_modules/rollup-plugin-typescript2/dist/rollup-plugin-typescript2.cjs.js:23720:18
    at Array.forEach (<anonymous>)
    at Object._object (/Users/tomn/tmp/svelte-gantt/node_modules/rollup-plugin-typescript2/dist/rollup-plugin-typescript2.cjs.js:23716:21)
    at Object.dispatch (/Users/tomn/tmp/svelte-gantt/node_modules/rollup-plugin-typescript2/dist/rollup-plugin-typescript2.cjs.js:23659:30)
    at /Users/tomn/tmp/svelte-gantt/node_modules/rollup-plugin-typescript2/dist/rollup-plugin-typescript2.cjs.js:23734:23
    at Array.forEach (<anonymous>)
    at Object._array (/Users/tomn/tmp/svelte-gantt/node_modules/rollup-plugin-typescript2/dist/rollup-plugin-typescript2.cjs.js:23733:20) {
  code: 'PLUGIN_ERROR',
  plugin: 'rpt2',
  hook: 'transform',
  id: '/Users/tomn/tmp/svelte-gantt/src/index.ts',
  watchFiles: [ '/Users/tomn/tmp/svelte-gantt/src/index.ts' ]
}
tomn@Toms-Mac-mini svelte-gantt % 

If anyone can show how to build, I can write a Github action so we can get this working in CI

@V-Py V-Py added the bug Something isn't working label Jun 16, 2023
@V-Py
Copy link
Collaborator

V-Py commented Jun 19, 2023

Sorry for the late response, some help on this subject would be appreciated because I can't really help on the iife bugs at the moment, since I didn't build the library and never work on iife build myself

@ANovokmet ANovokmet added this to the v4.1 milestone Oct 3, 2023
@ANovokmet
Copy link
Owner

Managed to reproduce this, in v4.1 iife builds are fixed, additionally, raw svelte components are also packaged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants