GithubHelp home page GithubHelp logo

fde31 / max-js-bundler Goto Github PK

View Code? Open in Web Editor NEW
22.0 22.0 6.0 465 KB

CLI Tool to bundle and transpile modern JS for usage in [js] and [jsui] in Max MSP. The idea is basically to support writing modern Ecmascript code alongside the usage of NPM dependencies within your code.

License: MIT License

JavaScript 2.44% Batchfile 0.29% TypeScript 97.27%

max-js-bundler's People

Contributors

fde31 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

max-js-bundler's Issues

Installation failed

Hello,

I wa trying to install the bundler to work with new posenet version from tensorflow but I get several errors:

npm WARN deprecated [email protected]: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-commonjs.
npm WARN deprecated [email protected]: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN deprecated [email protected]: This module has been deprecated and is no longer maintained. Please use @rollup/plugin-json.
npm WARN deprecated [email protected]: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-node-resolve.
npm ERR! code 128
npm ERR! Command failed: git clone --depth=1 -q -b fde/max_target git://github.com/fde31/rollup.git C:\Users\dell\AppData\Roaming\npm-cache_cacache\tmp\git-clone-22fe93bb --config core.longpaths=true
npm ERR! warning: templates not found in C:\Users\dell\AppData\Local\Temp\pacote-git-template-tmp\git-clone-c3b24fe1
npm ERR! error: invalid path 'test/chunking-form/samples/sanitize-chunk-names/_expected/amd/_virtual:entry-1.js'
npm ERR! fatal: unable to checkout working tree
npm ERR! warning: Clone succeeded, but checkout failed.
npm ERR! You can inspect what was checked out with 'git status'
npm ERR! and retry with 'git restore --source=HEAD :/'
npm ERR!
npm ERR!

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\dell\AppData\Roaming\npm-cache_logs\2020-02-28T15_31_25_802Z-debug.log

I am running on windows and tested the npm install inside max itslef

global namespace collisions (fe. Buffer object) cause a circular dependency issues or do not behave as expected

First off, thanks for making this! It's really helpful.

In my app, I tried to use Max's Buffer constructor:

var RandomFileBuffer = new Buffer('randomfile');

and I get the following error on build:

Circular dependency: ../../../../../usr/local/lib/node_modules/max-js-bundler/node_modules/core-js/modules/_array-copy-within.js -> ../../../../../usr/local/lib/node_modules/max-js-bundler/node_modules/core-js/modules/es6.array.copy-within.js -> commonjs-proxy-/usr/local/lib/node_modules/max-js-bundler/node_modules/core-js/modules/_array-copy-within.js -> ../../../../../usr/local/lib/node_modules/max-js-bundler/node_modules/core-js/modules/_array-copy-within.js

I am guessing core-js has a clashing Buffer object? Not sure. I seem to have a few issues around core-js compiling correctly. String.split() for instance throws and error and causes me to quit/restart Max.

Thanks!

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.