Comments (6)
I'm not familiar with vite, but just judging by the error, it says vite_ssr_import
which might imply server-side rendering. it's possible that Tone.js (since it's designed for the browser) threw an error which stopped the rest of the loading
from tone.js.
Thank you @tambien , tone@next
worked and there's no longer any errors 🙌
from tone.js.
With 14.9.17 is there any changes to how we should import Tone? This could be the same error, I'm also using import * as Tone from 'tone';
.
new Tone.Reverb(c.reverbOptions);
// note that this did not raise any error in TypeScript
results in error:
export 'Reverb' (imported as 'Tone') was not found in 'tone' (module has no exports)
<- error in the browser
The same code works ok with 14.7.77.
from tone.js.
I think I have to initialize it inside the onmount. I just switched it to include it from a CDN and everything works but I read onmount is where code should be placed inside a svelte project.
from tone.js.
With 14.9.17 is there any changes to how we should import Tone? This could be the same error, I'm also using
import * as Tone from 'tone';
.
new Tone.Reverb(c.reverbOptions);
// note that this did not raise any error in TypeScript results in error:export 'Reverb' (imported as 'Tone') was not found in 'tone' (module has no exports)
<- error in the browserThe same code works ok with 14.7.77.
@yl92 could you try npm i tone@next
? There might have been some breaks with the way the package is imported, if that's the case i'll promote the @next version to @latest to hopefully resolve this issue for anyone having it
from tone.js.
I think I have to initialize it inside the onmount. I just switched it to include it from a CDN and everything works but I read onmount is where code should be placed inside a svelte project.
Glad you got it working!
from tone.js.
Related Issues (20)
- Various Tone.LFO issues
- Synchronizing Tone.js audio across multiple devices HOT 3
- Possibility of finetuning A4 base frequency? Like a tuning fork, choose 442hz instead of 440hz
- Wavesurfer.js support HOT 1
- recorder.start().then doesn't work HOT 1
- LFO has no effect on iOS HOT 5
- .chain method won't work after array mutation with .splice and .slice methods HOT 6
- How can I use a Rubberband node? HOT 1
- Strange cracking noises with PolySynth HOT 2
- Dynamic Offline Bounce Duration HOT 1
- Cannot export audio via Reberb node using OfflineContext HOT 1
- Negative Feedback (so -1 to 1 range) for FeedBackCombFilter
- Unable to stream audio by fetching partial content of the audio HOT 1
- Loading audio files with space(s) in filename broken since v14.8.28 HOT 2
- [Question] `BiquadFilter.getFrequencyResponse` internals HOT 1
- Transport class is not documented
- [Suggestion] upgrade dep eslint to v9
- looping capability to sampler HOT 1
- Initializing Tone.Reverb with Number vs String
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tone.js.